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.
1 parent 50a883d commit 72b19a7Copy full SHA for 72b19a7
test/tools/unified-spec-runner/match.ts
@@ -262,8 +262,11 @@ export function resultCheck(
262
return;
263
}
264
265
- expect(actual, `Expected actual to be an object at: ${path.join('')}`).to.be.an(
266
- Array.isArray(expected) ? 'array' : 'object'
+ expect(
+ 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'
270
);
271
272
const expectedEntries = Object.entries(expected);
0 commit comments