Skip to content

Commit 2d74024

Browse files
author
blond
committed
test(unknow preset): add test for unknown preset
1 parent 01e680b commit 2d74024

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/options.test.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@
33
const test = require('ava');
44
const naming = require('../index');
55

6+
test('should throw error if specified preset is unknow', t => {
7+
t.throws(
8+
function () {
9+
return naming('my-preset');
10+
},
11+
'The `my-preset` naming is unknown.'
12+
);
13+
});
14+
615
test('should provide elem option', t => {
716
const myNaming = naming({ elem: '==' });
817

0 commit comments

Comments
 (0)