Skip to content

Commit

Permalink
Merge pull request #232 from quirrel-dev/fix-230
Browse files Browse the repository at this point in the history
Correctly forward "override" option
  • Loading branch information
Skn0tt authored Apr 3, 2021
2 parents 96bb368 + 2ae461a commit 01acdd1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions quirrel/src/api/shared/owl.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,17 @@ describe("owl config", () => {
).toEqual(new Date(2020, 10, 10, 10, 10, 11, 0));
});
});

describe("when using L (last day)", () => {
it("returns the correct last day of the month (repro #230)", () => {
expect(cron(new Date("2020-03-30"), "0 0 10 L * *")).toEqual(
new Date("2020-03-31T10:00:00Z")
);
expect(cron(new Date("2020-04-29"), "0 0 10 L * *")).toEqual(
new Date("2020-04-30T10:00:00Z")
);
});
});
});

describe("every", () => {
Expand Down
1 change: 1 addition & 0 deletions quirrel/src/client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ export class QuirrelClient<T> {
id: options.id,
repeat: options.repeat,
retry: options.retry?.map(parseDuration),
override: options.override
};
}

Expand Down

2 comments on commit 01acdd1

@vercel
Copy link

@vercel vercel bot commented on 01acdd1 Apr 3, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

quirrel-development-ui – ./development-ui

quirrel-development-ui-git-main-skn0tt.vercel.app
quirrel-development-ui-skn0tt.vercel.app
quirrel-development-ui.vercel.app
ui.quirrel.dev

@vercel
Copy link

@vercel vercel bot commented on 01acdd1 Apr 3, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.