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