Skip to content

Commit

Permalink
[Tests] safeset is also a Set
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jan 3, 2025
1 parent 97470cc commit 930c93b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"nyc": "^10.3.2",
"object-inspect": "^1.13.1",
"safe-publish-latest": "^2.0.0",
"safeset": "^1.0.1",
"tape": "^5.7.5",
"typescript": "next"
},
Expand Down
8 changes: 8 additions & 0 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
var test = require('tape');
var debug = require('object-inspect');
var forEach = require('for-each');
var SafeSet = require('safeset');

var isSet = require('..');

Expand Down Expand Up @@ -57,3 +58,10 @@ test('WeakSets', { skip: typeof WeakSet !== 'function' }, function (t) {

t.end();
});

test('SafeSet', function (t) {
var ss = new SafeSet();
t.equal(isSet(ss), true, debug(ss) + ' is a Set');

t.end();
});

0 comments on commit 930c93b

Please sign in to comment.