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
335 B
9 lines
335 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('' as any, m.string.not.empty), '[NOT] Expected string to be empty, got ``');
|
|
});
|
|
|