Skip to content

Commit

Permalink
update cli tests
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Jul 5, 2021
1 parent 7a6c4fa commit b9e0282
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/cli.js
Expand Up @@ -73,7 +73,7 @@
{
args: ["build", "-o", "tmp", "test/fixtures/test.mjs"],
expect (code, stdout, stderr) {
return stdout.toString().indexOf('tmp/index.js') !== -1;
return stdout.toString().indexOf('tmp/index.mjs') !== -1;
}
},
{
Expand Down Expand Up @@ -105,10 +105,10 @@
},
},
{
args: ["build", "-o", "tmp", "test/fixtures/module.cjs", "--esm"],
args: ["build", "-o", "tmp", "test/fixtures/module.cjs"],
expect (code, stdout) {
const fs = require('fs');
return code === 0 && fs.readFileSync('tmp/index.js', 'utf8').toString().indexOf('export {') !== -1;
return code === 0 && fs.readFileSync('tmp/index.js', 'utf8').toString().indexOf('export {') === -1;
}
}
]

0 comments on commit b9e0282

Please sign in to comment.