Skip to content

Commit 3b36cb0

Browse files
test: fix
1 parent 89b4238 commit 3b36cb0

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

test/plugin.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ describe('Plugin', function () {
7575
const bundleGroup = chartData.find(group => group.label === 'bundle.js');
7676

7777
expect(bundleGroup.groups).
78-
toMatch([
78+
toEqual([
7979
{
8080
label: 'src',
8181
path: './src',
@@ -109,7 +109,7 @@ describe('Plugin', function () {
109109

110110
const chartData = await getChartDataFromReport();
111111
expect(chartData.map(i => i.label))
112-
.toMatch(['bundle.js']);
112+
.toEqual(['bundle.js']);
113113
});
114114
});
115115
});
@@ -203,8 +203,8 @@ describe('Plugin', function () {
203203
gzipSize
204204
} = {gzipSize: 770, ...opts};
205205

206-
expect(fs.existsSync(`${__dirname}/output/${bundleFilename}`), 'bundle file missing').toBe(true);
207-
expect(fs.existsSync(`${__dirname}/output/${reportFilename}`), 'report file missing').toBe(true);
206+
expect(fs.existsSync(`${__dirname}/output/${bundleFilename}`)).toBe(true);
207+
expect(fs.existsSync(`${__dirname}/output/${reportFilename}`)).toBe(true);
208208
const chartData = await getChartDataFromReport(reportFilename);
209209
expect(chartData[0]).toMatch({
210210
label: bundleLabel,

0 commit comments

Comments
 (0)