Add native computer-use automation (#1683)
Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { describe, expect, it } from 'vitest'
|
||||
|
||||
import { parseArgs } from './args'
|
||||
|
||||
describe('parseArgs', () => {
|
||||
it('keeps an empty string as a flag value', () => {
|
||||
const parsed = parseArgs(['computer', 'set-value', '--value', '', '--json'])
|
||||
|
||||
expect(parsed.commandPath).toEqual(['computer', 'set-value'])
|
||||
expect(parsed.flags.get('value')).toBe('')
|
||||
expect(parsed.flags.get('json')).toBe(true)
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user