Skip to content

Commit 4360836

Browse files
committed
test: if input not found
1 parent 3a01485 commit 4360836

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

test/test-cfg-resolve.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ test('should return function', t => {
55
t.true(typeof cfgResolve === 'function');
66
});
77

8+
test('should throw error `input files not found`', t => {
9+
const error = t.throws(() => {
10+
cfgResolve({});
11+
}, {instanceOf: TypeError});
12+
13+
t.is(error.message, 'input files not found');
14+
});
15+
816
test('should return config with one use key without property', async t => {
917
const flags = {
1018
use: 'posthtml-bem'

0 commit comments

Comments
 (0)