Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

timerender test: Add explicit test for Montreal/Toronto.

Steve Howell094b59c3e731
diff --git a/web/tests/timerender.test.cjs b/web/tests/timerender.test.cjs
index 08057e5ee3f..a11bed6fc52 100644
--- a/web/tests/timerender.test.cjs
+++ b/web/tests/timerender.test.cjs
@@ -655,6 +655,10 @@ run_test("should_display_profile_incomplete_alert", () => {
});
run_test("canonicalize_time_zones", () => {
+ // We expect Montreal to convert to Toronto, but WARNING this might
+ // not work on all browsers.
+ assert.equal(timerender.browser_canonicalize_timezone("America/Montreal"), "America/Toronto");
+
assert.equal(
timerender.browser_canonicalize_timezone("Asia/Calcutta"),
timerender.browser_canonicalize_timezone("Asia/Kolkata"),