diff options
author | Wolfgang Müller | 2025-01-27 17:47:42 +0100 |
---|---|---|
committer | Wolfgang Müller | 2025-01-27 17:47:42 +0100 |
commit | 749062bed65a0f740988399ae591d259c71fdc3b (patch) | |
tree | 47e7e177e083f75bcc8b2f1cb3eeb916f7e2f73e /frontend/tests/Selection.test.ts | |
parent | 2099fb6e90c9ea3ef769cc3373ed98b61285d393 (diff) | |
download | hircine-749062bed65a0f740988399ae591d259c71fdc3b.tar.gz |
frontend/lint: Fix miscellaneous lint issues
Diffstat (limited to 'frontend/tests/Selection.test.ts')
-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', () => { |