Skip to content

Commit

Permalink
fix(test): update
Browse files Browse the repository at this point in the history
  • Loading branch information
unadlib committed Jan 4, 2025
1 parent c10a397 commit 723f9e9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/array.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ test('shift', () => {
draft.a.push(a);
expect(isDraft(a)).toBeTruthy();
});
// !!! Draft proxy array leakage
// !!! check draft proxy array leakage
expect(obj.a[0] === state.a.slice(-1)[0]).toBe(false);
});

Expand All @@ -26,7 +26,7 @@ test('splice', () => {
draft.a.push(a);
expect(isDraft(a)).toBeTruthy();
});
// !!! Draft proxy array leakage
// !!! check draft proxy array leakage
expect(obj.a[0] === state.a.slice(-1)[0]).toBe(false);
});

Expand All @@ -50,7 +50,7 @@ test('shift with mark', () => {
mark: (value) => (value instanceof Test ? 'immutable' : undefined),
}
);
// !!! Draft proxy array leakage
// !!! check draft proxy array leakage
expect(obj.a[0] === state.a.slice(-1)[0]).toBe(false);
});

Expand All @@ -74,7 +74,7 @@ test('splice with mark', () => {
mark: (value) => (value instanceof Test ? 'immutable' : undefined),
}
);
// !!! Draft proxy array leakage
// !!! check draft proxy array leakage
expect(obj.a[0] === state.a.slice(-1)[0]).toBe(false);
});

Expand All @@ -98,7 +98,7 @@ test('splice with mark', () => {
// },
// }
// );
// // !!! Draft proxy array leakage
// // !!! check draft proxy array leakage
// expect(obj.a[0] === state.a.slice(-1)[0]).toBe(false);
// });

Expand All @@ -121,6 +121,6 @@ test('splice with mark', () => {
// },
// }
// );
// // !!! Draft proxy array leakage
// // !!! check draft proxy array leakage
// expect(obj.a[0] === state.a.slice(-1)[0]).toBe(false);
// });

0 comments on commit 723f9e9

Please sign in to comment.