Skip to content

Commit

Permalink
fix: test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
RaoHai committed Jul 14, 2020
1 parent 5136832 commit 9b28cb7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/analyzer.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ describe('Analyzer', function () {

const generatedReportTitle = await getTitleFromReport();

expect(generatedReportTitle).to.match(/^webpack-bundle-analyzer \[.* at \d{2}:\d{2}\]/u);
expect(generatedReportTitle).to.match(/^umi-webpack-bundle-analyzer \[.* at \d{2}:\d{2}\]/u);
});
});
});
Expand Down
2 changes: 1 addition & 1 deletion test/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ describe('Plugin', function () {

const generatedReportTitle = await getTitleFromReport();

expect(generatedReportTitle).to.match(/^webpack-bundle-analyzer \[.* at \d{2}:\d{2}\]/u);
expect(generatedReportTitle).to.match(/^umi-webpack-bundle-analyzer \[.* at \d{2}:\d{2}\]/u);
});
it('should use a string', async function () {
const reportTitle = 'A string report title';
Expand Down

0 comments on commit 9b28cb7

Please sign in to comment.