Browse Source

Test Promise chain helper passes value through

transpile
Luke Childs 8 years ago
parent
commit
adc387bfcd
  1. 8
      test/unit.js

8
test/unit.js

@ -53,3 +53,11 @@ test.cb('Promise resolves if we wait for DOMContentLoaded', t => {
};
jsdom.env(config);
});
test('Promise chain helper passes value through', async t => {
t.plan(1);
await Promise
.resolve('foo')
.then(whenDomReady.resume())
.then(val => t.is(val, 'foo'));
});

Loading…
Cancel
Save