Skip to content

Commit

Permalink
Merge pull request #170 from webpack-contrib/test/source-map
Browse files Browse the repository at this point in the history
Test/source map
  • Loading branch information
jhnns authored Mar 18, 2017
2 parents 2bdabf5 + c88832f commit 0c2f385
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,14 @@ test('should generate source maps', async () => {
const rules = moduleRules.basic({ sourceMap: true }, {}, (i) => {
inspect = i;
});
const [expectedMap] = await Promise.all([
const [expectedCss, expectedMap] = await Promise.all([
readCssFixture('source-map'),
readSourceMap('source-map'),
compile('source-map', rules),
]);
const [, actualMap] = inspect.arguments;
const [actualCss, actualMap] = inspect.arguments;

expect(actualCss).toEqual(expectedCss);
expect(actualMap).toEqual(expectedMap);
});

Expand Down

0 comments on commit 0c2f385

Please sign in to comment.