Files
shumai/apps/web/src/workers.test.ts
T

16 lines
523 B
TypeScript
Raw Normal View History

import { describe, expect, it } from 'vitest'
import { getServerQueues } from './workers'
describe('server queues', () => {
it.each(['none', 'agent', 'ai', 'archive'])(
'keeps agent and archive embedded for %s',
(option) => {
expect(getServerQueues(option)).toEqual(['agent_queue', 'archive_queue'])
},
)
it.each(['all', 'transcode'])('also processes local transcoding for %s', (option) => {
expect(getServerQueues(option)).toEqual(['agent_queue', 'archive_queue', 'transcode_queue'])
})
})