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:
10
app/test/setup.js
Normal file
10
app/test/setup.js
Normal 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
2
app/test/support.js
Normal file
@@ -0,0 +1,2 @@
|
||||
// @flow
|
||||
export const runAllPromises = () => new Promise(setImmediate);
|
||||
Reference in New Issue
Block a user