mirror of
https://github.com/hanzoai/core-js.git
synced 2026-09-24 16:58:15 +00:00
12 lines
351 B
JavaScript
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');
|
|
}
|
|
});
|