Skip to content

Commit

Permalink
test: fix assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
forivall committed Jan 20, 2022
1 parent 6fb2833 commit 3047215
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/core.test.js
Expand Up @@ -135,9 +135,8 @@ t.test('disable with mode=production', async t => {
});

const files = getChunkFiles(stats);
t.equal(files.length, 2);
t.equal(files.length, 1);
t.ok(files.includes('app.js'));
t.ok(files.includes('https://unpkg.com/react@15.6.1/dist/react.min.js'));

const output = await fs.readFile(path.resolve(__dirname, './fixtures/output/disable-node-env-prod/app.js'));

Expand Down

0 comments on commit 3047215

Please sign in to comment.