🔨 changes

This commit is contained in:
Kunall Banerjee 2017-09-26 18:18:28 -04:00
parent bd72dbd1e5
commit 83e48df329
3 changed files with 9 additions and 6 deletions

View file

@ -54,6 +54,9 @@ const types = new Map([
PromiseSubclassFixture.resolve()
]],
['promise', {then() {}, catch() {}}],
['generator', (function * () {
yield 42;
})()],
['map', new Map()],
['set', new Set()],
['weakMap', new WeakMap()],
@ -167,10 +170,7 @@ if (isNode8orHigher) {
}
test('is.generator', t => {
const genObj = (function * () {
yield 42;
})();
t.true(m.generator(genObj));
testType(t, 'generator', ['function']);
});
test('is.generatorFunction', t => {