D | test-internal-validators-validateoneof.js | 10 const allowed = [2, 3]; variable 11 assert.throws(() => validateOneOf(1, 'name', allowed), { 16 assert.throws(() => validateOneOf(1, 'name', allowed, true), { 30 const allowed = ['b', 'c']; variable 31 assert.throws(() => validateOneOf('a', 'name', allowed), { 36 assert.throws(() => validateOneOf('a', 'name', allowed, true), { 51 const allowed = [Symbol.for('b'), Symbol.for('c')]; variable 52 assert.throws(() => validateOneOf(Symbol.for('a'), 'name', allowed), { 58 assert.throws(() => validateOneOf(Symbol.for('a'), 'name', allowed, true), { 67 const allowed = [Symbol.for('b'), Symbol.for('c')]; variable [all …]
|