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
328 B

import test from 'ava';
import m from '..';
test('not', t => {
t.notThrows(() => m(1, m.number.not.infinite));
t.notThrows(() => m(1, m.number.not.infinite.greaterThan(5)));
t.notThrows(() => m('foo!', m.string.not.alphanumeric));
t.throws(() => m('', m.string.not.empty), '[NOT] Expected string to be empty, got ``');
});