Skip to content

Commit 72b19a7

Browse files
committed
chai latte
1 parent 50a883d commit 72b19a7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/tools/unified-spec-runner/match.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,11 @@ export function resultCheck(
262262
return;
263263
}
264264

265-
expect(actual, `Expected actual to be an object at: ${path.join('')}`).to.be.an(
266-
Array.isArray(expected) ? 'array' : 'object'
265+
expect(
266+
actual,
267+
`Expected actual to be an ${Array.isArray(expected) ? 'array' : 'object'} at: ${path.join('')}`
268+
).to.satisfies(actual =>
269+
Array.isArray(expected) ? Array.isArray(actual) : typeof actual === 'object'
267270
);
268271

269272
const expectedEntries = Object.entries(expected);

0 commit comments

Comments
 (0)