MCPcopy Create free account
hub / github.com/Botloader/botloader / testListOptions

Function testListOptions

integration-tests/settings.ts:271–291  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

269}
270
271function testListOptions() {
272 const expectedValues = [{
273 string_required_no_default_provided: expectedProvidedValueString,
274 string_required_default: "default",
275 string_required_default_provided: expectedProvidedValueString,
276 string: "",
277 string_provided: expectedProvidedValueString,
278 string_default: "default",
279 string_default_provided: expectedProvidedValueString,
280 }, {
281 string_required_no_default_provided: expectedProvidedValueString2,
282 string_required_default: "default",
283 string_required_default_provided: expectedProvidedValueString2,
284 string: "",
285 string_provided: expectedProvidedValueString2,
286 string_default: "default",
287 string_default_provided: expectedProvidedValueString2,
288 }]
289
290 testList(expectedValues, testListString.value)
291}
292
293const testListStringSelects = script.settings.startList("string_selects_list")
294 .addOptionCustomStringSelect("no_default_empty", { options: stringOptions })

Callers 1

settings.tsFile · 0.85

Calls 1

testListFunction · 0.85

Tested by

no test coverage detected