Skip to content

Commit

Permalink
add a failing test for empty child config
Browse files Browse the repository at this point in the history
  • Loading branch information
ekmartin committed Oct 10, 2016
1 parent a806841 commit 870ce88
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/fixtures/nested/child-empty/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"xo": {}
}
6 changes: 6 additions & 0 deletions test/options-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,3 +162,9 @@ test('mergeWithPkgConf: use parent if child is ignored', t => {
const expected = Object.assign({}, parentConfig.xo, {cwd});
t.deepEqual(result, expected);
});

test.failing('mergeWithPkgConf: use child if child is empty', t => {
const cwd = path.resolve('fixtures', 'nested', 'child-empty');
const result = manager.mergeWithPkgConf({cwd});
t.deepEqual(result, {cwd});
});

0 comments on commit 870ce88

Please sign in to comment.