Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/get-symbol-description/test/index.js
r0c6b92a r79a0317 13 13 t.test('no symbols', { skip: v.hasSymbols }, function (st) { 14 14 st['throws']( 15 // @ts-expect-error 15 16 getSymbolDescription, 16 17 SyntaxError, … … 21 22 }); 22 23 23 forEach(v.nonSymbolPrimitives.concat(v.objects), function (nonSymbol) { 24 forEach([].concat( 25 // @ts-expect-error TS sucks with concat 26 v.nonSymbolPrimitives, 27 v.objects 28 ), function (nonSymbol) { 24 29 t['throws']( 25 30 function () { getSymbolDescription(nonSymbol); }, … … 31 36 t.test('with symbols', { skip: !v.hasSymbols }, function (st) { 32 37 forEach( 33 [ 38 // eslint-disable-next-line no-extra-parens 39 /** @type {[symbol, undefined | string][]} */ ([ 34 40 [Symbol(), undefined], 35 41 [Symbol(undefined), undefined], 42 // @ts-expect-error 36 43 [Symbol(null), 'null'], 37 44 [Symbol.iterator, 'Symbol.iterator'], 38 45 [Symbol('foo'), 'foo'] 39 ] ,46 ]), 40 47 function (pair) { 41 48 var sym = pair[0];
Note:
See TracChangeset
for help on using the changeset viewer.