Skip to content

Commit ba8f35d

Browse files
committed
Fix typescript issue
1 parent 60903a9 commit ba8f35d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

apps/webapp/test/calculateNextSchedule.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,10 @@ describe("calculateNextScheduledTimestamp - Fuzzy Testing", () => {
389389
}
390390
} catch (error) {
391391
// Some complex expressions might not be supported, that's okay
392-
if (!error.message.includes("not supported") && !error.message.includes("Invalid")) {
392+
if (
393+
!(error as Error).message.includes("not supported") &&
394+
!(error as Error).message.includes("Invalid")
395+
) {
393396
console.error(`Unexpected error with schedule: ${schedule}`);
394397
throw error;
395398
}

0 commit comments

Comments
 (0)