assert.deepStrictEqual instead of deepEqual

pull/5/head
eliot-akira 3 years ago
parent a610cf8cff
commit 823db2a17e
  1. 2
      test/persistence.test.js

@ -282,7 +282,7 @@ describe('Persistence', function () {
const treatedData = result.data const treatedData = result.data
const indexes = result.indexes const indexes = result.indexes
Object.keys(indexes).length.should.equal(1) Object.keys(indexes).length.should.equal(1)
assert.deepEqual(indexes.test, { fieldName: 'test', unique: true }) assert.deepStrictEqual(indexes.test, { fieldName: 'test', unique: true })
treatedData.sort(function (a, b) { return a._id - b._id }) treatedData.sort(function (a, b) { return a._id - b._id })
treatedData.length.should.equal(2) treatedData.length.should.equal(2)

Loading…
Cancel
Save