Switch from prettier to oxfmt (#33844)
* Switch from prettier to oxfmt * Make knip happy * Make knip happy * Apply suggestion from @t3chguy * Rename .oxfmtrc.json to .oxfmtrc.jsonc * Make oxfmt happier
This commit is contained in:
@@ -202,16 +202,14 @@ describe("<UserInfo />", () => {
|
||||
describe.each([[ProfileKeyTimezone], [ProfileKeyMSC4175Timezone]])("timezone rendering (%s)", (profileKey) => {
|
||||
it("renders user timezone if set", async () => {
|
||||
// For timezone, force a consistent locale.
|
||||
jest.spyOn(global.Date.prototype, "toLocaleString").mockImplementation(function (
|
||||
this: Date,
|
||||
_locale,
|
||||
opts,
|
||||
) {
|
||||
return origDate.call(this, "en-US", {
|
||||
...opts,
|
||||
hourCycle: "h12",
|
||||
});
|
||||
});
|
||||
jest.spyOn(global.Date.prototype, "toLocaleString").mockImplementation(
|
||||
function (this: Date, _locale, opts) {
|
||||
return origDate.call(this, "en-US", {
|
||||
...opts,
|
||||
hourCycle: "h12",
|
||||
});
|
||||
},
|
||||
);
|
||||
mockClient.doesServerSupportExtendedProfiles.mockResolvedValue(true);
|
||||
mockClient.getExtendedProfile.mockResolvedValue({ [profileKey]: "Europe/London" });
|
||||
renderComponent();
|
||||
|
||||
Reference in New Issue
Block a user