remove setTimeout hack for testing api.login Login.jsx handlers

This commit is contained in:
John Mitchell
2018-10-31 12:04:59 -04:00
parent 55586b9b2a
commit e53a6a91d6
2 changed files with 37 additions and 63 deletions

View File

@@ -1,5 +1,8 @@
require('@babel/polyfill');
// eslint-disable-next-line import/prefer-default-export
export const asyncFlush = () => new Promise((resolve) => setImmediate(resolve));
const enzyme = require('enzyme');
const Adapter = require('enzyme-adapter-react-16');