Skip to content

Commit 2560ea3

Browse files
committed
restore assertions.js
1 parent b4f4d49 commit 2560ea3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/chai/core/assertions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2524,7 +2524,7 @@ function assertKeys(keys) {
25242524
});
25252525
}
25262526

2527-
if (!keys.length) {
2527+
if (!keys.length && actual.length) {
25282528
throw new AssertionError(flagMsg + 'keys required', undefined, ssfi);
25292529
}
25302530

0 commit comments

Comments
 (0)