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.
 
 

8 lines
274 B

import test from 'ava';
import m from '..';
test('symbol', t => {
t.notThrows(() => m(Symbol.iterator, m.symbol));
t.notThrows(() => m(Symbol('foo'), m.symbol));
t.throws(() => m(12, m.symbol), 'Expected argument to be of type `symbol` but received type `number`');
});