Skip to content

Commit

Permalink
fix bug in unified runner match
Browse files Browse the repository at this point in the history
  • Loading branch information
baileympearson committed May 24, 2022
1 parent 6546428 commit 04c8230
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/tools/unified-spec-runner/match.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export function resultCheck(
// So we need to recurse over each key,value
const expectedEntries = Object.entries(expected);

if (depth > 1) {
if (depth > 0) {
expect(actual, `Expected actual to exist at ${path.join('')}`).to.exist;
const actualKeys = Object.keys(actual);
const expectedKeys = Object.keys(expected);
Expand Down

0 comments on commit 04c8230

Please sign in to comment.