Skip to content
This repository has been archived by the owner on Feb 29, 2020. It is now read-only.

Commit

Permalink
Fix Bug 1486950 - Increase time range for currentDate targeting mochi…
Browse files Browse the repository at this point in the history
…test
  • Loading branch information
piatra committed Sep 6, 2018
1 parent b31a327 commit bafc5d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/browser/browser_asrouter_targeting.js
Expand Up @@ -111,11 +111,11 @@ add_task(async function checkProfileAgeReset() {
});

add_task(async function checkCurrentDate() {
let message = {id: "foo", targeting: `currentDate < '${new Date(Date.now() + 1000)}'|date`};
let message = {id: "foo", targeting: `currentDate < '${new Date(Date.now() + 5000)}'|date`};
is(await ASRouterTargeting.findMatchingMessage({messages: [message]}), message,
"should select message based on currentDate < timestamp");

message = {id: "foo", targeting: `currentDate > '${new Date(Date.now() - 1000)}'|date`};
message = {id: "foo", targeting: `currentDate > '${new Date(Date.now() - 5000)}'|date`};
is(await ASRouterTargeting.findMatchingMessage({messages: [message]}), message,
"should select message based on currentDate > timestamp");
});
Expand Down

0 comments on commit bafc5d5

Please sign in to comment.