From 91afded824742102f96ccb8aa733882d4aa6a226 Mon Sep 17 00:00:00 2001 From: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com> Date: Thu, 23 Feb 2023 01:04:29 +0200 Subject: [PATCH] Fix sticker tests --- DiscordChatExporter.Cli.Tests/Specs/HtmlStickerSpecs.cs | 4 ++-- DiscordChatExporter.Cli.Tests/Specs/JsonStickerSpecs.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/DiscordChatExporter.Cli.Tests/Specs/HtmlStickerSpecs.cs b/DiscordChatExporter.Cli.Tests/Specs/HtmlStickerSpecs.cs index 3ade155..1cbc069 100644 --- a/DiscordChatExporter.Cli.Tests/Specs/HtmlStickerSpecs.cs +++ b/DiscordChatExporter.Cli.Tests/Specs/HtmlStickerSpecs.cs @@ -19,7 +19,7 @@ public class HtmlStickerSpecs // Assert var stickerUrl = message.QuerySelector("[title='rock'] img")?.GetAttribute("src"); - stickerUrl.Should().Be("https://discord.com/stickers/904215665597120572.png"); + stickerUrl.Should().Be("https://cdn.discordapp.com/stickers/904215665597120572.png"); } [Fact] @@ -33,6 +33,6 @@ public class HtmlStickerSpecs // Assert var stickerUrl = message.QuerySelector("[title='Yikes'] [data-source]")?.GetAttribute("data-source"); - stickerUrl.Should().Be("https://discord.com/stickers/816087132447178774.json"); + stickerUrl.Should().Be("https://cdn.discordapp.com/stickers/816087132447178774.json"); } } \ No newline at end of file diff --git a/DiscordChatExporter.Cli.Tests/Specs/JsonStickerSpecs.cs b/DiscordChatExporter.Cli.Tests/Specs/JsonStickerSpecs.cs index 074b576..f7d7150 100644 --- a/DiscordChatExporter.Cli.Tests/Specs/JsonStickerSpecs.cs +++ b/DiscordChatExporter.Cli.Tests/Specs/JsonStickerSpecs.cs @@ -27,7 +27,7 @@ public class JsonStickerSpecs sticker.GetProperty("id").GetString().Should().Be("904215665597120572"); sticker.GetProperty("name").GetString().Should().Be("rock"); sticker.GetProperty("format").GetString().Should().Be("PngAnimated"); - sticker.GetProperty("sourceUrl").GetString().Should().Be("https://discord.com/stickers/904215665597120572.png"); + sticker.GetProperty("sourceUrl").GetString().Should().Be("https://cdn.discordapp.com/stickers/904215665597120572.png"); } [Fact] @@ -48,6 +48,6 @@ public class JsonStickerSpecs sticker.GetProperty("id").GetString().Should().Be("816087132447178774"); sticker.GetProperty("name").GetString().Should().Be("Yikes"); sticker.GetProperty("format").GetString().Should().Be("Lottie"); - sticker.GetProperty("sourceUrl").GetString().Should().Be("https://discord.com/stickers/816087132447178774.json"); + sticker.GetProperty("sourceUrl").GetString().Should().Be("https://cdn.discordapp.com/stickers/816087132447178774.json"); } } \ No newline at end of file