compose: Update CZO links from stream to channel in compose tests.

This is a follow-up to the previous commit, which updated the links in
docs and comments. This commit updates those links that are part of
some code.

This commit is a part of the effort to rename stream to channel.
This commit is contained in:
Sayam Samal
2024-06-07 12:17:51 +05:30
committed by Tim Abbott
parent a7772f86a2
commit 1cb3c85417
2 changed files with 5 additions and 5 deletions

View File

@@ -404,7 +404,7 @@ test("quote_and_reply", ({disallow, override, override_rewire}) => {
sender_id: 90,
};
hash_util.by_conversation_and_time_url = () =>
"https://chat.zulip.org/#narrow/stream/92-learning/topic/Tornado";
"https://chat.zulip.org/#narrow/channel/92-learning/topic/Tornado";
let success_function;
override(channel, "get", (opts) => {
@@ -426,7 +426,7 @@ test("quote_and_reply", ({disallow, override, override_rewire}) => {
replaced = false;
expected_replacement =
"translated: @_**Steve Stephenson|90** [said](https://chat.zulip.org/#narrow/stream/92-learning/topic/Tornado):\n```quote\nTesting.\n```";
"translated: @_**Steve Stephenson|90** [said](https://chat.zulip.org/#narrow/channel/92-learning/topic/Tornado):\n```quote\nTesting.\n```";
quote_and_reply(opts);
@@ -464,7 +464,7 @@ test("quote_and_reply", ({disallow, override, override_rewire}) => {
replaced = false;
expected_replacement =
"translated: @_**Steve Stephenson|90** [said](https://chat.zulip.org/#narrow/stream/92-learning/topic/Tornado):\n````quote\n```\nmultiline code block\nshoudln't mess with quotes\n```\n````";
"translated: @_**Steve Stephenson|90** [said](https://chat.zulip.org/#narrow/channel/92-learning/topic/Tornado):\n````quote\n```\nmultiline code block\nshoudln't mess with quotes\n```\n````";
quote_and_reply(opts);
assert.ok(replaced);
});

View File

@@ -280,7 +280,7 @@ run_test("quote_and_reply", ({override, override_rewire}) => {
override(
hash_util,
"by_conversation_and_time_url",
() => "https://chat.zulip.org/#narrow/stream/92-learning/topic/Tornado",
() => "https://chat.zulip.org/#narrow/channel/92-learning/topic/Tornado",
);
override(message_lists.current, "get", (id) => (id === 100 ? selected_message : undefined));
@@ -356,7 +356,7 @@ run_test("quote_and_reply", ({override, override_rewire}) => {
assert.equal(old_syntax, "translated: [Quoting…]");
assert.equal(
new_syntax(),
"translated: @_**Steve Stephenson|90** [said](https://chat.zulip.org/#narrow/stream/92-learning/topic/Tornado):\n" +
"translated: @_**Steve Stephenson|90** [said](https://chat.zulip.org/#narrow/channel/92-learning/topic/Tornado):\n" +
"```quote\n" +
`${quote_text}\n` +
"```",