Skip to content

Commit

Permalink
Fix already loaded callback test to work with new callback functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
lukechilds committed Feb 1, 2017
1 parent 2790d23 commit bb31bc9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/unit.js
Expand Up @@ -39,11 +39,14 @@ test.cb('Promise resolves with local document', t => {
jsdom.env(config);
});

test('callback fires if we run after DOMContentLoaded', async t => {
test.cb('callback fires if we run after DOMContentLoaded', t => {
t.plan(1);
const config = {
html: '',
created: (err, window) => whenDomReady(() => t.pass(), window.document)
created: (err, window) => whenDomReady(() => {
t.pass();
t.end();
}, window.document)
};
jsdom.env(config);
});
Expand Down

0 comments on commit bb31bc9

Please sign in to comment.