mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
14 lines
376 B
TypeScript
14 lines
376 B
TypeScript
import { describe, it, expect } from '@jest/globals'
|
|
import { conditionSchema } from '../src/index.js'
|
|
|
|
describe('parsing condition', () => {
|
|
it('should parse condition', () => {
|
|
const condition = {
|
|
command: ['^echo start$'],
|
|
output: ['^start$'],
|
|
}
|
|
const result = conditionSchema.safeParse(condition)
|
|
expect(result.error).toBeUndefined()
|
|
})
|
|
})
|