Skip to content

Commit 37e9540

Browse files
author
Mikhail Avdeev
committed
chore: prettify test
1 parent 300ed2f commit 37e9540

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

test/cli.test.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,6 @@ describe('cli', () => {
166166
assert.equal(out.stdout, 'BAR\n\nFOO+\n\n')
167167
})
168168

169-
170-
171169
test('supports `--env` and `--cwd` options and with file', async () => {
172170
const env = tmpfile(
173171
'.env',
@@ -193,11 +191,11 @@ describe('cli', () => {
193191
console.log((await $\`echo $BAR\`).stdout)
194192
`
195193
try {
196-
await $`node build/cli.js --env=./env <<< ${file}`
197-
fs.remove(env)
198-
assert.throw()
194+
await $`node build/cli.js --env=./env <<< ${file}`
195+
fs.remove(env)
196+
assert.throw()
199197
} catch (e) {
200-
assert.equal(e.exitCode, 1)
198+
assert.equal(e.exitCode, 1)
201199
}
202200
})
203201

0 commit comments

Comments
 (0)