mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-27 03:14:11 +00:00
16 lines
523 B
TypeScript
16 lines
523 B
TypeScript
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'])
|
||
|
|
})
|
||
|
|
})
|