From 42577eab58aa323c07b8efcc3c8c69b9140b9077 Mon Sep 17 00:00:00 2001 From: Noah Loomans Date: Tue, 3 Jul 2018 21:27:05 +0200 Subject: client/reducer: Use withinRange --- src/client/react/store/reducers.test.js | 32 -------------------------------- 1 file changed, 32 deletions(-) (limited to 'src/client/react/store/reducers.test.js') diff --git a/src/client/react/store/reducers.test.js b/src/client/react/store/reducers.test.js index ae4d664..3f6aff1 100644 --- a/src/client/react/store/reducers.test.js +++ b/src/client/react/store/reducers.test.js @@ -173,22 +173,6 @@ describe('reducers', () => { selected: 's/18561', }, }); - - expect(reducer({ - ...DEFAULT_STATE, - search: { - results: ['s/18561', 's/18562', 's/18563'], - text: '1856', - selected: 's/18563', - }, - }, { type: 'SEARCH/CHANGE_SELECTED_RESULT', relativeChange: +1 })).toEqual({ - ...DEFAULT_STATE, - search: { - results: ['s/18561', 's/18562', 's/18563'], - text: '1856', - selected: 's/18561', - }, - }); }); it('Properly wraps around when decrementing', () => { @@ -207,22 +191,6 @@ describe('reducers', () => { selected: 's/18563', }, }); - - expect(reducer({ - ...DEFAULT_STATE, - search: { - results: ['s/18561', 's/18562', 's/18563'], - text: '1856', - selected: null, - }, - }, { type: 'SEARCH/CHANGE_SELECTED_RESULT', relativeChange: -1 })).toEqual({ - ...DEFAULT_STATE, - search: { - results: ['s/18561', 's/18562', 's/18563'], - text: '1856', - selected: 's/18563', - }, - }); }); }); }); -- cgit v1.1