firescript
Version:
Firescript language
23 lines (19 loc) • 573 B
JavaScript
const path = require('path')
const shellInspect = require('shell-inspect')
const projectDir = path.join(__dirname, '../../../')
const cmd = path.join(__dirname, '../../../cli/firescript')
describe('CLI', () => {
beforeEach(() => {
})
describe('fire exec [file]', () => {
it('executes a firescript file', () => {
return shellInspect
.cwd(projectDir)
.cmd(`${cmd} exec examples/hello.fire`)
.test((ctx) => {
inspect(ctx.exitCode).isEqual(0)
inspect(ctx.text).doesContain('Hello World')
})
})
})
})