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#blink', assert => {
|
|
const { blink } = String.prototype;
|
|
assert.isFunction(blink);
|
|
assert.arity(blink, 0);
|
|
assert.name(blink, 'blink');
|
|
assert.looksNative(blink);
|
|
assert.nonEnumerable(String.prototype, 'blink');
|
|
assert.same('a'.blink(), '<blink>a</blink>', 'lower case');
|
|
|
|
if (typeof Symbol == 'function' && !Symbol.sham) {
|
|
assert.throws(() => blink.call(Symbol('blink test')), 'throws on symbol context');
|
|
}
|
|
});
|