Skip to content

Commit

Permalink
test(unknow preset): add test for unknown preset
Browse files Browse the repository at this point in the history
  • Loading branch information
blond committed Mar 27, 2016
1 parent 73c88f1 commit a294ba4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/options.test.js
Expand Up @@ -3,6 +3,15 @@
const test = require('ava');
const naming = require('../index');

test('should throw error if specified preset is unknow', t => {
t.throws(
function () {
return naming('my-preset');
},
'The `my-preset` naming is unknown.'
);
});

test('should provide elem option', t => {
const myNaming = naming({ elem: '==' });

Expand Down

0 comments on commit a294ba4

Please sign in to comment.