Skip to content

Commit 7a96127

Browse files
committed
test: default for base config
1 parent c8f9a54 commit 7a96127

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

test/test-cfg-resolve.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,24 @@ test('should throw error `input files not found`', t => {
1414
t.is(error.message, 'input files not found');
1515
});
1616

17+
test('should return simple config', t => {
18+
const input = 'input.html';
19+
const flags = {};
20+
const config = cfgResolve({input, flags});
21+
const expected = {
22+
allInOutput: false,
23+
input: [path.resolve('input.html')],
24+
options: {},
25+
output: undefined,
26+
plugins: {
27+
'posthtml-custom-elements': {}
28+
},
29+
root: './'
30+
};
31+
32+
t.deepEqual(config, expected);
33+
});
34+
1735
test('should return config plugins with one use key without property', t => {
1836
const input = 'input.html';
1937
const flags = {

0 commit comments

Comments
 (0)