mirror of
https://github.com/antonmedv/fx.git
synced 2024-09-17 13:17:08 +03:00
Add raw test
This commit is contained in:
parent
7680663107
commit
6c372e99e2
@ -90,4 +90,9 @@ void async function main() {
|
||||
t.equal(status, 1)
|
||||
t.ok(stderr.includes(`SyntaxError: Unexpected token '}'`))
|
||||
})
|
||||
|
||||
await test('raw flag', async t => {
|
||||
const {stdout} = await run(123, `-r 'x => typeof x'`)
|
||||
t.equal(stdout, 'string\n')
|
||||
})
|
||||
}()
|
||||
|
Loading…
Reference in New Issue
Block a user