mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-18 13:23:33 +08:00
13 lines
499 B
TypeScript
13 lines
499 B
TypeScript
import { expect, test } from 'bun:test'
|
|
import { readFileSync } from 'node:fs'
|
|
|
|
const source = readFileSync(new URL('./print.ts', import.meta.url), 'utf8')
|
|
|
|
test('model metadata advertises Auto by feature instead of provider or model', () => {
|
|
expect(source).not.toContain('modelSupportsAutoMode(resolvedModel)')
|
|
expect(source).toContain(
|
|
"const autoModeSupported = feature('TRANSCRIPT_CLASSIFIER') ? true : false",
|
|
)
|
|
expect(source).toContain('const hasAutoMode = autoModeSupported')
|
|
})
|