Files
core-js/tests/unit-pure/es.string.small.js

12 lines
351 B
JavaScript

import small from 'core-js-pure/es/string/small';
QUnit.test('String#small', assert => {
assert.isFunction(small);
assert.same(small('a'), '<small>a</small>', 'lower case');
/* eslint-disable es/no-symbol -- safe */
if (typeof Symbol == 'function') {
assert.throws(() => small(Symbol('small test')), 'throws on symbol context');
}
});