Skip to content

Commit

Permalink
make the groupConfig test a little more complex
Browse files Browse the repository at this point in the history
  • Loading branch information
jamestalmage committed Dec 14, 2015
1 parent bc94351 commit 1cfad64
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions test/options-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ test('groupConfigs', t => {
const paths = [
'/user/foo/hello.js',
'/user/foo/goodbye.js',
'/user/foo/howdy.js',
'/user/bar/hello.js'
];

Expand All @@ -192,20 +193,28 @@ test('groupConfigs', t => {

const overrides = [
{
files: '**/bar/*',
files: '**/foo/*',
esnext: false
},
{
files: '**/foo/howdy.js',
space: 3
}
];

const result = manager.groupConfigs(paths, opts, overrides);

t.same(result, [
{
opts: {esnext: true},
opts: {esnext: false},
paths: ['/user/foo/hello.js', '/user/foo/goodbye.js']
},
{
opts: {esnext: false},
opts: {esnext: false, space: 3},
paths: ['/user/foo/howdy.js']
},
{
opts: {esnext: true},
paths: ['/user/bar/hello.js']
}
]);
Expand Down

0 comments on commit 1cfad64

Please sign in to comment.