Skip to content

Commit 0f3f818

Browse files
authored
test: fix unit test assert (#60)
1 parent 4aec07d commit 0f3f818

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

esbuild-node-externals/test/unit/index.test.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@ describe('nodeExternalsPlugin', () => {
1919
}
2020
await build(config)
2121
const result1 = await fs.readFile(path.resolve(__dirname, '../temp/index.js'), 'utf8')
22-
assert.ok(result1.includes('node_modules/tslib/tslib.es6.mjs'), true)
22+
assert.equal(result1.includes('node_modules/tslib/tslib.es6.mjs'), true)
2323

2424
await build({
2525
...config,
2626
plugins: [plugin]
2727
})
28-
assert.ok(result1.includes('node_modules/tslib/tslib.es6.mjs'), false)
28+
const result2 = await fs.readFile(path.resolve(__dirname, '../temp/index.js'), 'utf8')
29+
assert.equal(result2.includes('node_modules/tslib/tslib.es6.mjs'), false)
2930
})
3031
})

0 commit comments

Comments
 (0)