Files
linux-odyssey/packages/constants/tests/condition.test.ts
T

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()
})
})