mirror of
https://github.com/hanzoai/core-js.git
synced 2026-09-24 16:58:15 +00:00
12 lines
288 B
JavaScript
12 lines
288 B
JavaScript
import WeakSet from 'core-js-pure/full/weak-set';
|
|
|
|
QUnit.test('WeakSet.of', assert => {
|
|
const { of } = WeakSet;
|
|
assert.isFunction(of);
|
|
assert.name(of, 'of');
|
|
assert.arity(of, 0);
|
|
const array = [];
|
|
assert.true(of() instanceof WeakSet);
|
|
assert.true(of(array).has(array));
|
|
});
|