Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions packages/dds/map/src/test/mocha/directory.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1064,18 +1064,21 @@ describe("Directory", () => {
// eslint-disable-next-line unicorn/no-array-for-each
directory1.forEach((value, key) => {
assert(i < values.length, "forEach() should not have iterated more than i times");
assert.strictEqual(key, values[i][0], "key should match");
assert.strictEqual(value, values[i][1], "value should match");
assert.equal(key, values[i][0], "key should match");
assert.equal(value, values[i][1], "value should match");
i++;
});
assert.equal(i, values.length, "forEach() should have iterated i times");

i = 0;
// eslint-disable-next-line unicorn/no-array-for-each
directory2.forEach((value, key) => {
assert(i < values.length, "forEach() should not have iterated more than i times");
assert.strictEqual(key, values[i][0], "key should match");
assert.strictEqual(value, values[i][1], "value should match");
assert.equal(key, values[i][0], "key should match");
assert.equal(value, values[i][1], "value should match");
i++;
});
assert.equal(i, values.length, "forEach() should have iterated i times");
});

it("Shouldn't clear value if there is pending set", () => {
Expand Down
Loading