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

Function byName

javascript/selenium-webdriver/normalize_bidi_ast_test.mjs:33–33  ·  view source on GitHub ↗
(ast, n)

Source from the content-addressed store, hash-verified

31const field = (name, type) => ({ Name: name, Occurrence: { n: 1, m: 1 }, Type: type, Comments: [] })
32const def = (name, props) => ({ Type: 'group', Name: name, Properties: props, IsChoiceAddition: false, Comments: [] })
33const byName = (ast, n) => ast.find((d) => d.Name === n)
34
35describe('hoistInlineEnums', () => {
36 it('hoists a multi-literal field to a named enum and rewrites the field to a ref', () => {

Callers 1

Calls 1

findMethod · 0.80

Tested by

no test coverage detected