suite.js 573 B

1234567891011121314151617181920212223242526272829
  1. import tape from 'tape';
  2. import _test from 'tape-promise';
  3. const tapetest = _test(tape);
  4. import * as reducers from '../src/reducers/index.js';
  5. import * as actions from '../src/actions.js';
  6. tapetest('test', async function testProgram(assert) {
  7. try {
  8. assert.pass('empty test file');
  9. }
  10. catch(e) {
  11. console.log('error in', assert.name, e);
  12. assert.fail(`error in ${assert.name}`);
  13. }
  14. assert.end();
  15. });
  16. function waitPro(n = 1000) {
  17. return new Promise(function pro(resolve, reject) {
  18. setTimeout(resolve, n);
  19. });
  20. }