mirror of
https://github.com/hanzoai/core-js.git
synced 2026-09-24 16:58:15 +00:00
12 lines
357 B
JavaScript
12 lines
357 B
JavaScript
import italics from 'core-js-pure/es/string/italics';
|
|
|
|
QUnit.test('String#italics', assert => {
|
|
assert.isFunction(italics);
|
|
assert.same(italics('a'), '<i>a</i>', 'lower case');
|
|
|
|
/* eslint-disable es/no-symbol -- safe */
|
|
if (typeof Symbol == 'function') {
|
|
assert.throws(() => italics(Symbol('italics test')), 'throws on symbol context');
|
|
}
|
|
});
|