Skip to content

Commit 11d9fb7

Browse files
committed
test: allInOutput config in JSON is ignored, issue #330
1 parent 4d80872 commit 11d9fb7

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

test/config/.config-allInOutput

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
'allInOutput': true
3+
}

test/test-cfg-resolve.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,16 @@ test('should return config root', t => {
104104
t.deepEqual(config.input, expectedInput);
105105
});
106106

107+
test('should return config allInOutput', t => {
108+
const input = 'input.html';
109+
const flags = {
110+
config: 'test/config/.config-allInOutput'
111+
};
112+
const config = cfgResolve({input, flags});
113+
114+
t.true(config.allInOutput);
115+
});
116+
107117
test('should return config with key config and use key', t => {
108118
const input = 'input.html';
109119
const flags = {

0 commit comments

Comments
 (0)