mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 02:17:19 +00:00
timerender test: Add explicit test for Montreal/Toronto.
This might not actually work in all browsers, but it expresses our intention, and it is what works on node.
This commit is contained in:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user