7 lines
565 B
TypeScript
7 lines
565 B
TypeScript
|
|
import {describe,expect,it} from 'vitest'
|
||
|
|
import {holdLabel,workflowState} from './format'
|
||
|
|
describe('workflow waiting and job state copy',()=>{
|
||
|
|
it.each([['ready','就绪'],['submitting','正在提交'],['collecting','正在归档'],['scheduled','预约中'],['pausing','正在暂停']])('translates %s', (value,label)=>expect(workflowState(value)).toBe(label))
|
||
|
|
it.each([['admin_suspend','管理员已暂停任务'],['quota','等待可用配额'],['storage','等待可用存储空间']])('explains %s hold', (value,label)=>expect(holdLabel(value)).toBe(label))
|
||
|
|
})
|