});
});
const results = await Promise.all(tests.map((test) => test.catch((result) => result)));
- const passed = !results.some((result) => !result.pass);
+ const passed = results.every((result) => result.pass);
// Delay the status update to prevent UI flicker.
await new Promise((resolve) => window.setTimeout(resolve, 500));
if (passed) {
const results: TestResult[] = await Promise.all(tests.map((test) => test.catch((result) => result)));
- const passed = !results.some((result) => !result.pass);
+ const passed = results.every((result) => result.pass);
// Delay the status update to prevent UI flicker.
await new Promise((resolve) => window.setTimeout(resolve, 500));