Add raw test

pull/251/head
Anton Medvedev 1 year ago
parent 7680663107
commit 6c372e99e2
No known key found for this signature in database

@ -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…
Cancel
Save