Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 0 additions & 46 deletions ab-testing/config/scripts/validation/validExpiration.test.ts

This file was deleted.

4 changes: 2 additions & 2 deletions ab-testing/config/scripts/validation/validExpiration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ export function allExpirationsValid(tests: ABTest[]): boolean {
const now = new Date();

if (expires < now) {
throw new Error(
console.warn(
`${
test.name
} has an expiration date in the past: ${expires.toISOString()}, has it expired? If it doesn't belong to you or your team, you can set the status to OFF for now.`,
} has an expiration date in the past: ${expires.toISOString()}, has it expired?`,
);
}
});
Expand Down
Loading