From 2d7402429fbe0645e5e8a77308094542e9cfae74 Mon Sep 17 00:00:00 2001 From: blond Date: Sat, 26 Mar 2016 21:13:21 +0300 Subject: [PATCH] test(unknow preset): add test for unknown preset --- test/options.test.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/options.test.js b/test/options.test.js index 7c808198..26248500 100644 --- a/test/options.test.js +++ b/test/options.test.js @@ -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: '==' });