Skip to content

Commit

Permalink
[Tests] temporarily skip SafeSet tests in envs where es-set has to po…
Browse files Browse the repository at this point in the history
…lyfill
  • Loading branch information
ljharb committed Jan 3, 2025
1 parent 89d84b5 commit d88acf0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"auto-changelog": "^2.5.0",
"core-js": "^2.6.12",
"encoding": "^0.1.13",
"es-set": "^2.0.1",
"es5-shim": "^4.6.7",
"es6-shim": "^0.35.8",
"eslint": "=8.8.0",
Expand Down
5 changes: 3 additions & 2 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ var test = require('tape');
var debug = require('object-inspect');
var forEach = require('for-each');
var SafeSet = require('safeset');
var ESSet = require('es-set');

var isSet = require('..');

Expand Down Expand Up @@ -59,9 +60,9 @@ test('WeakSets', { skip: typeof WeakSet !== 'function' }, function (t) {
t.end();
});

test('SafeSet', function (t) {
test('SafeSet', { skip: ESSet !== Set && 'TODO: fix this test for envs where es-set has to polyfill' }, function (t) {
var ss = new SafeSet();
t.equal(isSet(ss), true, debug(ss) + ' is a Set');
t.equal(isSet(ss), true, debug(ss) + ' is a Set, when Set is present');

t.end();
});

0 comments on commit d88acf0

Please sign in to comment.