mirror of
https://github.com/zulip/zulip.git
synced 2025-11-12 09:58:06 +00:00
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:
@@ -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);
|
||||
});
|
||||
|
||||
@@ -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` +
|
||||
"```",
|
||||
|
||||
Reference in New Issue
Block a user