|
@@ -7,10 +7,22 @@ const tapetest = _test(tape);
|
|
|
import * as reducers from '../build/reducers/index.js';
|
|
|
import * as actions from '../build/actions.js';
|
|
|
|
|
|
-
|
|
|
-tapetest('test', async function testProgram(t) {
|
|
|
- t.pass('empty test file');
|
|
|
- t.end();
|
|
|
+tapetest('test', async function testProgram(assert) {
|
|
|
+ try {
|
|
|
+ assert.pass('empty test file');
|
|
|
+ }
|
|
|
+ catch(e) {
|
|
|
+ console.log('error in', assert.name, e);
|
|
|
+ assert.fail(`error in ${assert.name}`);
|
|
|
+ }
|
|
|
+ assert.end();
|
|
|
});
|
|
|
|
|
|
|
|
|
+function waitPro(n = 1000) {
|
|
|
+ return new Promise(function pro(resolve, reject) {
|
|
|
+ setTimeout(resolve, n);
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
+
|