Skip to content

Commit

Permalink
Adding test for destDir with leading slash
Browse files Browse the repository at this point in the history
  • Loading branch information
SparshithNR committed Mar 2, 2020
1 parent 219a262 commit 197f662
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,26 @@ describe('broccoli-funnel', function() {
]);
});

it('accepts destDir with leading slash', async function() {
let inputPath = `${FIXTURE_INPUT}/lib/utils`;

let node = new Funnel(inputPath, {
destDir: '/foo',

processFile() {
/* do nothing */
},
});

output = createBuilder(node);
await output.build();

expect(walkSync(output.path())).to.eql([
'foo/',
'foo/foo.js',
]);
});

it('works with mixed glob and RegExp includes', async function() {
let inputPath = `${FIXTURE_INPUT}/dir1`;
let node = new Funnel(inputPath, {
Expand Down

0 comments on commit 197f662

Please sign in to comment.