Skip to content

Commit

Permalink
tests: create unit test for OutputGroup (#1579)
Browse files Browse the repository at this point in the history
Co-authored-by: Anshuman Verma <anshu.av97@gmail.com>
  • Loading branch information
snitin315 and anshumanv authored May 26, 2020
1 parent 77e6e81 commit 2142c7f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/webpack-cli/__tests__/OutputGroup.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const OutputGroup = require('../lib/groups/OutputGroup');

describe('OutputGroup', function () {
it('should handle the output option', () => {
const group = new OutputGroup([
{
output: './bundle.js',
},
]);

const result = group.run();
expect(result.options.output.filename).toEqual('bundle.js');
});
});

0 comments on commit 2142c7f

Please sign in to comment.