Skip to content

Commit

Permalink
Fixed build failures hopefully
Browse files Browse the repository at this point in the history
  • Loading branch information
aditi-khare-mongoDB committed Jul 18, 2022
1 parent 9161fbc commit dc35940
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/tools/spec-runner/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -486,10 +486,10 @@ function validateExpectations(commandEvents, spec, savedSessionData) {
}

if (expectedCommand.createIndexes) {
for (const index of actualCommand.indexes) {
expect(index.key).to.have.lengthOf(1);
expect(index.key).to.be.instanceOf(Map);
expect(index.key.size).to.equal(1);
for (const [i, dbIndex] of actualCommand.indexes.entries()) {
expect(Object.keys(expectedCommand.indexes[i].key)).to.have.lengthOf(1);
expect(dbIndex.key).to.be.instanceOf(Map);
expect(dbIndex.key.size).to.equal(1);
}
actualCommand.indexes = actualCommand.indexes.map(dbIndex => ({
...dbIndex,
Expand Down

0 comments on commit dc35940

Please sign in to comment.