Skip to content

Commit

Permalink
feat: tests stashing before dnm is applied
Browse files Browse the repository at this point in the history
  • Loading branch information
abp6318 committed Oct 4, 2024
1 parent 77419b9 commit 3768bae
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/common/src/core/schedule.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { IHubSchedule } from "./types";

// IHubSchedule utils
// IHubSchedule util
// TODO: add comments for date math

/**
* Get the next daily occurance of the specified hour in the specified timezone
Expand Down
35 changes: 35 additions & 0 deletions packages/common/test/core/schedule.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@


// TODO
describe("getNextOccurance", () => {

it('no next occurrance, mode is automatic or manual', async () => {
const automatic = { mode: "automatic" };
const manual = { mode: "manual" };
// expect(getNextOccurance(automatic, "en-US").).toBe
});

it('is of mode scheduled, but invalid cadence', async () => {

});

describe("gets daily occurrance", () => {

});

describe("gets weekly occurrance", () => {

});

describe("gets monthly occurrance", () => {

});

describe("gets yearly occurrance", () => {

});

describe("validation methods", () => {

});
});

0 comments on commit 3768bae

Please sign in to comment.