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
2 changes: 1 addition & 1 deletion .scripts/run_eslint_on_modified_files.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
checkout
checkout || true
git fetch --unshallow 2> /dev/null
git config remote.origin.fetch '+refs/heads/*:refs/remotes/origin/*'
git fetch origin main
Expand Down
10 changes: 8 additions & 2 deletions tests/DatePicker.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import DatePicker from "components/DatePicker";
import { dayjs } from "utils";
import userEvent from "@testing-library/user-event";

const today = dayjs();
const theDate = dayjs(new Date(1999, 7, 16));
const anotherDate = theDate.add(1, "day");

Expand Down Expand Up @@ -34,7 +33,14 @@ describe("DatePicker", () => {
});

it("should show only hours if format is HH", async () => {
render(<DatePicker open showTime defaultValue={today} timeFormat="HH" />);
render(
<DatePicker
open
showTime
defaultValue={theDate.hour(10)}
timeFormat="HH"
/>
);
expect(await screen.findAllByText("00")).toHaveLength(1);
});

Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8641,9 +8641,9 @@ __metadata:
linkType: hard

"fast-uri@npm:^3.0.1":
version: 3.1.0
resolution: "fast-uri@npm:3.1.0"
checksum: 10c0/44364adca566f70f40d1e9b772c923138d47efeac2ae9732a872baafd77061f26b097ba2f68f0892885ad177becd065520412b8ffeec34b16c99433c5b9e2de7
version: 3.1.2
resolution: "fast-uri@npm:3.1.2"
checksum: 10c0/5b35641895959f3f7ab7a7b1b5542bded159346f25ec9f256817b206d50b64eda5828e90d605a2e2fc645c90519a7259c2bab2c942ee728c88b88e5be21b090d
languageName: node
linkType: hard

Expand Down