We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a55141c + e95d479 commit 9acb938Copy full SHA for 9acb938
test/Utils/AssertExtensions.ts
@@ -94,7 +94,7 @@ export class JavaAssertionBuilder {
94
if (this._value instanceof Map) {
95
assert.strictEqual(this._value.size, n);
96
} else {
97
- assert.strictEqual(Object.keys(this._value).length, n);
+ assert.strictEqual(Object.keys(this._value ?? {}).length, n);
98
}
99
100
return this;
0 commit comments