Skip to content

Commit 4457dcd

Browse files
test: lower: switch to property-based testing
1 parent b1360ab commit 4457dcd

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

test/lower.test.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
const test = require('tape');
2-
const {lower} = require('..');
1+
const check = require('./_check');
2+
const {lower: sut} = require('..');
33

4-
test('lower returns `s` lowercased', t => {
5-
t.same(lower('FOO'), 'foo');
6-
t.end();
7-
});
4+
check('lower(s)',
5+
['string'], s =>
6+
sut(s) === s.toLowerCase());

0 commit comments

Comments
 (0)