From b8118ac86a0b5bf246e72a7683ebd5662f9e5da2 Mon Sep 17 00:00:00 2001 From: "Keith J. Grant" Date: Tue, 18 Apr 2023 10:04:19 -0700 Subject: [PATCH] remove outdated tests --- .../PersistentFilters.test.js | 44 ------------------- 1 file changed, 44 deletions(-) diff --git a/awx/ui/src/components/PersistentFilters/PersistentFilters.test.js b/awx/ui/src/components/PersistentFilters/PersistentFilters.test.js index bb13f56c0f..7168f1932d 100644 --- a/awx/ui/src/components/PersistentFilters/PersistentFilters.test.js +++ b/awx/ui/src/components/PersistentFilters/PersistentFilters.test.js @@ -24,28 +24,6 @@ describe('PersistentFilters', () => { }); }); - test('should restore filters from sessionStorage', () => { - expect( - sessionStorage.setItem( - KEY, - JSON.stringify({ - pageKey: 'templates', - qs: '?page=2&name=foo', - }) - ) - ); - const history = createMemoryHistory({ - initialEntries: ['/templates?restoreFilters=true'], - }); - render( - - test - - ); - - expect(history.location.search).toEqual('?page=2&name=foo'); - }); - test('should not restore filters without restoreFilters query param', () => { expect( sessionStorage.setItem( @@ -68,28 +46,6 @@ describe('PersistentFilters', () => { expect(history.location.search).toEqual(''); }); - test("should not restore filters if page key doesn't match", () => { - expect( - sessionStorage.setItem( - KEY, - JSON.stringify({ - pageKey: 'projects', - qs: '?page=2&name=foo', - }) - ) - ); - const history = createMemoryHistory({ - initialEntries: ['/templates?restoreFilters=true'], - }); - render( - - test - - ); - - expect(history.location.search).toEqual(''); - }); - test('should update stored filters when qs changes', async () => { const history = createMemoryHistory({ initialEntries: ['/templates'],