mirror of
https://github.com/hanzoai/core-js.git
synced 2026-09-24 16:58:15 +00:00
14 lines
594 B
JavaScript
14 lines
594 B
JavaScript
import { DESCRIPTORS } from '../helpers/constants.js';
|
|
|
|
QUnit.test('Symbol.replaceAll', assert => {
|
|
assert.true('replaceAll' in Symbol, 'Symbol.replaceAll is available');
|
|
assert.nonEnumerable(Symbol, 'replaceAll');
|
|
assert.true(Object(Symbol.replaceAll) instanceof Symbol, 'Symbol.replaceAll is symbol');
|
|
if (DESCRIPTORS) {
|
|
const descriptor = Object.getOwnPropertyDescriptor(Symbol, 'replaceAll');
|
|
assert.false(descriptor.enumerable, 'non-enumerable');
|
|
assert.false(descriptor.writable, 'non-writable');
|
|
assert.false(descriptor.configurable, 'non-configurable');
|
|
}
|
|
});
|