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

Function withField

javascript/selenium-webdriver/project_bidi_schema_test.mjs:917–927  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

915
916 describe('numeric bounds', () => {
917 const withField = (type) => ({
918 schemaVersion: 1,
919 commands: [],
920 events: [],
921 types: {
922 'x.T': { kind: 'record', fields: [{ name: 'a', wire: 'a', required: true, type }] },
923 'x.Uint': { kind: 'alias', type: { primitive: 'integer', min: 0 } },
924 'x.Text': { kind: 'alias', type: { primitive: 'string' } },
925 'x.Rec': { kind: 'record', fields: [] },
926 },
927 })
928 const misplaced = ['x.T.a: carries a numeric bound on a non-numeric type']
929
930 it('accepts a bound on a numeric primitive or on a ref to a numeric alias', () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected