@@ -2,11 +2,7 @@ import { describe, expect, it } from "vite-plus/test";
22
33import type { ModelCapabilities } from "@t3tools/contracts" ;
44
5- import {
6- applyProviderOptionSelection ,
7- providerOptionValueLabels ,
8- resolveProviderOptionDescriptors ,
9- } from "./providerOptions" ;
5+ import { applyProviderOptionSelection , resolveProviderOptionDescriptors } from "./providerOptions" ;
106
117const CODEX_CAPABILITIES : ModelCapabilities = {
128 optionDescriptors : [
@@ -34,15 +30,6 @@ const CODEX_CAPABILITIES: ModelCapabilities = {
3430} ;
3531
3632describe ( "mobile provider options" , ( ) => {
37- it ( "summarizes the option values currently in effect" , ( ) => {
38- const descriptors = resolveProviderOptionDescriptors ( {
39- capabilities : CODEX_CAPABILITIES ,
40- selections : undefined ,
41- } ) ;
42-
43- expect ( providerOptionValueLabels ( descriptors ) ) . toEqual ( [ "Medium" , "Standard" ] ) ;
44- } ) ;
45-
4633 it ( "updates generic select options without knowing provider-specific ids" , ( ) => {
4734 const descriptors = resolveProviderOptionDescriptors ( {
4835 capabilities : CODEX_CAPABILITIES ,
@@ -62,15 +49,14 @@ describe("mobile provider options", () => {
6249 expect ( applyProviderOptionSelection ( descriptors , { id : "unknown" , value : "high" } ) ) . toBeNull ( ) ;
6350 } ) ;
6451
65- it ( "treats an unspecified boolean capability as off " , ( ) => {
52+ it ( "updates generic boolean options " , ( ) => {
6653 const descriptors = resolveProviderOptionDescriptors ( {
6754 capabilities : {
6855 optionDescriptors : [ { id : "fastMode" , label : "Fast Mode" , type : "boolean" } ] ,
6956 } ,
7057 selections : undefined ,
7158 } ) ;
7259
73- expect ( providerOptionValueLabels ( descriptors ) ) . toEqual ( [ ] ) ;
7460 expect ( applyProviderOptionSelection ( descriptors , { id : "fastMode" , value : true } ) ) . toEqual ( [
7561 { id : "fastMode" , value : true } ,
7662 ] ) ;
0 commit comments