mirror of
https://github.com/ryujinx-mirror/unstable-commands.git
synced 2025-02-17 04:49:23 +00:00
17 lines
365 B
TypeScript
17 lines
365 B
TypeScript
import {expect, test} from '@jest/globals'
|
|
import {runUnstableCommand} from '../src/run'
|
|
import {getShell} from '../src/shells'
|
|
|
|
test('unstable command succeeds', async () => {
|
|
const result = await runUnstableCommand(
|
|
['echo "Hello world!"'],
|
|
await getShell('default-shell'),
|
|
process.cwd(),
|
|
1,
|
|
3,
|
|
[139]
|
|
)
|
|
|
|
expect(result).toEqual(0)
|
|
})
|