Skip to content

Commit

Permalink
assert.equal -> assert.strictEqual
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanZim committed May 14, 2019
1 parent cb8d327 commit 8893617
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/fs/__tests__/realpath.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,22 @@ if (typeof fs.realpath.native === 'function') {
it('works with callbacks', () => {
fse.realpath.native(__dirname, (err, path) => {
assert.ifError(err)
assert.equal(path, __dirname)
assert.strictEqual(path, __dirname)
})
})

it('works with promises', (done) => {
fse.realpath.native(__dirname)
.then(path => {
assert.equal(path, __dirname)
assert.strictEqual(path, __dirname)
done()
})
.catch(done)
})

it('works with sync version', () => {
const path = fse.realpathSync.native(__dirname)
assert.equal(path, __dirname)
assert.strictEqual(path, __dirname)
})
})
}

0 comments on commit 8893617

Please sign in to comment.