Skip to content

Commit

Permalink
fix: use correct should assertion syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
janvennemann authored and sgtcoolguy committed Oct 3, 2019
1 parent 8c1e265 commit 00b9845
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/Resources/util.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1464,24 +1464,24 @@ describe('util', () => {
describe('#isWeakMap()', () => {
it('should return true for built-in WeakMap', () => {
const map = new WeakMap();
util.types.isWeakMap(map).to.be.true;
util.types.isWeakMap(map).should.be.true;
});

it('should return false for other values', () => {
util.types.isWeakMap({}).to.be.false;
util.types.isWeakMap(new Map()).to.be.false;
util.types.isWeakMap({}).should.be.false;
util.types.isWeakMap(new Map()).should.be.false;
});
});

describe('#isWeakSet()', () => {
it('should return true for built-in WeakSet', () => {
const map = new WeakSet();
util.types.isWeakSet(map).to.be.true;
util.types.isWeakSet(map).should.be.true;
});

it('should return false for other values', () => {
util.types.isWeakSet({}).to.be.false;
util.types.isWeakSet(new Set()).to.be.false;
util.types.isWeakSet({}).should.be.false;
util.types.isWeakSet(new Set()).should.be.false;
});
});

Expand Down

0 comments on commit 00b9845

Please sign in to comment.