Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[datetime2] fix(DateInput2): display updated timezone immediately #5718

Merged
merged 2 commits into from
Nov 6, 2022
Merged
Changes from 1 commit
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
Prev Previous commit
Update packages/datetime2/test/components/dateInput2Tests.tsx
adidahiya authored Nov 6, 2022
commit dd3527ba1b42656e13cf5393f3617fb7c1003e04
2 changes: 1 addition & 1 deletion packages/datetime2/test/components/dateInput2Tests.tsx
Original file line number Diff line number Diff line change
@@ -479,7 +479,7 @@ describe("<DateInput2>", () => {
assert.doesNotThrow(() => mount(<DateInput2 {...DEFAULT_PROPS_CONTROLLED} value={null} />));
});

describe.only("when changing timezone", () => {
describe("when changing timezone", () => {
it("calls onChange with the updated ISO string", () => {
const wrapper = mount(<DateInput2 {...DEFAULT_PROPS_CONTROLLED} />);
clickTimezoneItem(wrapper, "Paris");