MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / enumDef

Function enumDef

javascript/selenium-webdriver/project_bidi_schema_test.mjs:519–525  ·  view source on GitHub ↗
(name, values)

Source from the content-addressed store, hash-verified

517 PropertyType: refs.map(ref),
518 })
519 const enumDef = (name, values) => ({
520 Type: 'variable',
521 Name: name,
522 IsChoiceAddition: false,
523 Comments: [],
524 PropertyType: values.map(lit),
525 })
526
527 it('flags a union whose every arm is an object type as objectOnly', () => {
528 const s = projectSchema([union('x.U', ['x.A', 'x.B']), rec('x.A', 'a'), rec('x.B', 'b')], {})

Callers 1

Calls 1

mapMethod · 0.45

Tested by

no test coverage detected