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

12 lines
345 B
JavaScript

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