Improve tests of ModelFromRepositoryType.

This commit is contained in:
Madeorsk 2022-08-04 15:05:27 +02:00
parent 15de42f7ca
commit cb40f95a52
1 changed files with 5 additions and 0 deletions

View File

@ -42,4 +42,9 @@ it("get the same object after two deserializations", () => {
// `a` of `secondB` should be `a` of `firstB`.
expect(secondB.a).toBe(firstB.a);
// If something changes in A instance of firstB,
// A instance of secondB should have the same modification (as it should be the same instance).
firstB.a.foo = "test";
expect(secondB.a.foo).toStrictEqual("test");
});