Files

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');
}
});