mirror of
https://github.com/hanzoai/core-js.git
synced 2026-09-24 16:58:15 +00:00
14 lines
453 B
JavaScript
14 lines
453 B
JavaScript
QUnit.test('String#small', assert => {
|
|
const { small } = String.prototype;
|
|
assert.isFunction(small);
|
|
assert.arity(small, 0);
|
|
assert.name(small, 'small');
|
|
assert.looksNative(small);
|
|
assert.nonEnumerable(String.prototype, 'small');
|
|
assert.same('a'.small(), '<small>a</small>', 'lower case');
|
|
|
|
if (typeof Symbol == 'function' && !Symbol.sham) {
|
|
assert.throws(() => small.call(Symbol('small test')), 'throws on symbol context');
|
|
}
|
|
});
|