mirror of
https://github.com/hanzoai/core-js.git
synced 2026-09-24 16:58:15 +00:00
19 lines
567 B
JavaScript
19 lines
567 B
JavaScript
import Set from 'core-js-pure/full/set';
|
|
|
|
QUnit.test('Set#join', assert => {
|
|
const { join } = Set.prototype;
|
|
|
|
assert.isFunction(join);
|
|
assert.arity(join, 1);
|
|
assert.name(join, 'join');
|
|
assert.nonEnumerable(Set.prototype, 'join');
|
|
|
|
assert.same(new Set([1, 2, 3]).join(), '1,2,3');
|
|
assert.same(new Set([1, 2, 3]).join(undefined), '1,2,3');
|
|
assert.same(new Set([1, 2, 3]).join('|'), '1|2|3');
|
|
|
|
assert.throws(() => join.call({}), TypeError);
|
|
assert.throws(() => join.call(undefined), TypeError);
|
|
assert.throws(() => join.call(null), TypeError);
|
|
});
|