import test from 'ava';
import whenDomReady from '../';

test('whenDomReady is a function', t => {
	t.is(typeof whenDomReady, 'function');
});

test('whenDomReady returns a Promise', t => {
	t.true(whenDomReady() instanceof Promise);
});

@@ -227,12 +227,321 @@
 omise);%0A%7D);%0A
+%0Atest('whenDomReady.resume is a function', t =%3E %7B%0A%09t.is(typeof whenDomReady.resume, 'function');%0A%7D);%0A%0Atest('whenDomReady.resume returns a function that returns a promise', t =%3E %7B%0A%09const returnValue = whenDomReady.resume();%0A%09t.is(typeof returnValue, 'function');%0A%09t.true(returnValue() instanceof Promise);%0A%7D);%0A

Add type test for whenDomReady.resume