Skip to content

Commit

Permalink
test: add additional cases for cleanMarkdown with ptb and canary Disc…
Browse files Browse the repository at this point in the history
…ord URLs (#710)
  • Loading branch information
Mogyuchi authored Dec 31, 2024
1 parent 6e438d6 commit 417559a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/synthesis/clean.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,14 @@ void test("cleanMarkdown works fine with url", () => {
cleanMarkdown(mockMessage("https://discord.com/channels/0/0")),
" 外部サーバーのチャンネル ",
);
assert.strictEqual(
cleanMarkdown(mockMessage("https://ptb.discord.com/channels/0/0")),
" 外部サーバーのチャンネル ",
);
assert.strictEqual(
cleanMarkdown(mockMessage("https://canary.discord.com/channels/0/0")),
" 外部サーバーのチャンネル ",
);
assert.strictEqual(
cleanMarkdown(mockMessage("https://discord.com/channels/0/0/0")),
" 外部サーバーのメッセージ ",
Expand Down

0 comments on commit 417559a

Please sign in to comment.