源码快照 @ 2026-09-02 (source-only, 剔除非源码素材)
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import { describe, expect, test } from "bun:test";
|
||||
|
||||
import {
|
||||
MODEL_PICKER_DEFAULT_SUBTITLE,
|
||||
MODEL_PICKER_UNAVAILABLE_SUBTITLE,
|
||||
resolveModelPickerSubtitle,
|
||||
} from "../src/react-app/domains/session/modals/model-picker-modal";
|
||||
|
||||
describe("model picker subtitle", () => {
|
||||
test("keeps the normal session subtitle by default", () => {
|
||||
expect(resolveModelPickerSubtitle(undefined)).toBe(MODEL_PICKER_DEFAULT_SUBTITLE);
|
||||
});
|
||||
|
||||
test("supports the unavailable-model recovery subtitle", () => {
|
||||
expect(resolveModelPickerSubtitle(MODEL_PICKER_UNAVAILABLE_SUBTITLE)).toBe(
|
||||
"The model you were using is no longer available, please select a different model for this session.",
|
||||
);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user