mirror of
https://github.com/hanzoai/core-js.git
synced 2026-09-24 16:58:15 +00:00
13 lines
359 B
JavaScript
13 lines
359 B
JavaScript
QUnit.test('Set.of', assert => {
|
|
const { of } = Set;
|
|
const toArray = Array.from;
|
|
assert.isFunction(of);
|
|
assert.arity(of, 0);
|
|
assert.name(of, 'of');
|
|
assert.looksNative(of);
|
|
assert.nonEnumerable(Set, 'of');
|
|
assert.true(of() instanceof Set);
|
|
assert.deepEqual(toArray(of(1)), [1]);
|
|
assert.deepEqual(toArray(of(1, 2, 3, 2, 1)), [1, 2, 3]);
|
|
});
|