Skip to content

Commit

Permalink
Nit
Browse files Browse the repository at this point in the history
  • Loading branch information
ryangoree committed Oct 10, 2024
1 parent 12561e6 commit 73f6989
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/drift/src/utils/extendInstance.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,7 @@ describe("extendInstance", () => {
it("Creates a shallow copy of the instance", () => {
const obj = { a: 1, b: { c: 2 } };
const extended = extendInstance(obj, { d: 3 });

expect(extended).not.toBe(obj);

obj.a = 2;
expect(extended.a).toBe(1);

obj.b.c = 3;
expect(extended.b.c).toBe(3);
expect(extended.b).toBe(obj.b);
});
});

0 comments on commit 73f6989

Please sign in to comment.