File: es.string.big.js

package info (click to toggle)
node-core-js 3.33.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 18,828 kB
  • sloc: javascript: 87,204; makefile: 13
file content (13 lines) | stat: -rw-r--r-- 427 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
QUnit.test('String#big', assert => {
  const { big } = String.prototype;
  assert.isFunction(big);
  assert.arity(big, 0);
  assert.name(big, 'big');
  assert.looksNative(big);
  assert.nonEnumerable(String.prototype, 'big');
  assert.same('a'.big(), '<big>a</big>', 'lower case');

  if (typeof Symbol == 'function' && !Symbol.sham) {
    assert.throws(() => big.call(Symbol('big test')), 'throws on symbol context');
  }
});