mirror of https://github.com/lukechilds/ow.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
309 B
9 lines
309 B
import test from 'ava';
|
|
import m from '..';
|
|
|
|
test('iterable', t => {
|
|
t.notThrows(() => m([], m.iterable));
|
|
t.notThrows(() => m('foo', m.iterable));
|
|
t.notThrows(() => m(new Map(), m.iterable));
|
|
t.throws(() => m(12, m.iterable), 'Expected argument to be of type `iterable` but received type `number`');
|
|
});
|
|
|