diff options
Diffstat (limited to 'frontend/tests')
-rw-r--r-- | frontend/tests/Selection.test.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/frontend/tests/Selection.test.ts b/frontend/tests/Selection.test.ts index 67e8c4c..c7847cd 100644 --- a/frontend/tests/Selection.test.ts +++ b/frontend/tests/Selection.test.ts @@ -86,7 +86,7 @@ test('deselects all', () => { selection = selection.none(); - expect(selection.ids).empty; + expect(selection.ids).toHaveLength(0); }); test('deselects a single item', () => { @@ -104,7 +104,7 @@ test('deselects multiple items', () => { selection = selection.update(2, true); selection = selection.update(2, true); - expect(selection.ids).empty; + expect(selection.ids).toHaveLength(0); }); test('retains selection', () => { @@ -130,7 +130,7 @@ test('is inactive after clearing', () => { selection.active = true; selection = selection.clear(); - expect(selection.active).false; + expect(selection.active).toBeFalsy(); }); test('can be toggled', () => { @@ -142,7 +142,7 @@ test('can be toggled', () => { selection = selection.all(); selection = selection.toggle(); expect(selection.active).toBe(false); - expect(selection.ids).empty; + expect(selection.ids).toHaveLength(0); }); test('can be cleared', () => { @@ -151,7 +151,7 @@ test('can be cleared', () => { selection = selection.all(); selection = selection.clear(); - expect(selection.ids).empty; + expect(selection.ids).toHaveLength(0); }); test('reports selected items', () => { |