Skip to content

Commit

Permalink
Cleanup type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
chmln committed Jul 1, 2018
1 parent 220fd47 commit 937cc82
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions build.ts
Expand Up @@ -125,6 +125,7 @@ function buildExtras(folder: "plugins" | "l10n") {
...src_paths.map(async sourcePath => {
const bundle = await rollup.rollup({
...rollupConfig.input,
cache: undefined,
input: sourcePath,
});

Expand Down
12 changes: 6 additions & 6 deletions src/__tests__/index.spec.ts
Expand Up @@ -1064,9 +1064,9 @@ describe("flatpickr", () => {
defaultMinute: 45,
});

simulate("mousedown", fp.todayDateElem, { which: 1 });
expect(fp.latestSelectedDateObj.getHours()).toEqual(12);
expect(fp.latestSelectedDateObj.getMinutes()).toEqual(45);
simulate("mousedown", <DayElement>fp.todayDateElem, { which: 1 });
expect((<Date>fp.latestSelectedDateObj).getHours()).toEqual(12);
expect((<Date>fp.latestSelectedDateObj).getMinutes()).toEqual(45);

createInstance({
enableTime: true,
Expand All @@ -1075,9 +1075,9 @@ describe("flatpickr", () => {
defaultMinute: 0,
});

simulate("mousedown", fp.todayDateElem, { which: 1 });
expect(fp.latestSelectedDateObj.getHours()).toEqual(6);
expect(fp.latestSelectedDateObj.getMinutes()).toEqual(30);
simulate("mousedown", <DayElement>fp.todayDateElem, { which: 1 });
expect((<Date>fp.latestSelectedDateObj).getHours()).toEqual(6);
expect((<Date>fp.latestSelectedDateObj).getMinutes()).toEqual(30);
});

it("time picker: minDate + bounds", () => {
Expand Down

0 comments on commit 937cc82

Please sign in to comment.