fix: Data loading state not reset when props change to PaginatedList (#2254)

* fix: Data loading state not reset when significant props change to PaginatedList

closes #2251

* test: Add enzyme and component test
This commit is contained in:
Tom Moor
2021-06-26 21:49:25 -07:00
committed by GitHub
parent 31180619e1
commit 088353d61f
10 changed files with 598 additions and 155 deletions

10
app/test/setup.js Normal file
View File

@@ -0,0 +1,10 @@
// @flow
/* eslint-disable */
import localStorage from '../../__mocks__/localStorage';
import Enzyme from "enzyme";
import Adapter from "enzyme-adapter-react-16";
import "../stores";
Enzyme.configure({ adapter: new Adapter() });
global.localStorage = localStorage;

2
app/test/support.js Normal file
View File

@@ -0,0 +1,2 @@
// @flow
export const runAllPromises = () => new Promise(setImmediate);