Skip to content

Commit dc35940

Browse files
Fixed build failures hopefully
1 parent 9161fbc commit dc35940

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/tools/spec-runner/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -486,10 +486,10 @@ function validateExpectations(commandEvents, spec, savedSessionData) {
486486
}
487487

488488
if (expectedCommand.createIndexes) {
489-
for (const index of actualCommand.indexes) {
490-
expect(index.key).to.have.lengthOf(1);
491-
expect(index.key).to.be.instanceOf(Map);
492-
expect(index.key.size).to.equal(1);
489+
for (const [i, dbIndex] of actualCommand.indexes.entries()) {
490+
expect(Object.keys(expectedCommand.indexes[i].key)).to.have.lengthOf(1);
491+
expect(dbIndex.key).to.be.instanceOf(Map);
492+
expect(dbIndex.key.size).to.equal(1);
493493
}
494494
actualCommand.indexes = actualCommand.indexes.map(dbIndex => ({
495495
...dbIndex,

0 commit comments

Comments
 (0)