Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyrrrz committed Jan 18, 2024
1 parent 014712b commit 9b8985a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 7 additions & 6 deletions DiscordChatExporter.Cli.Tests/Specs/FilterSpecs.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.IO;
using System;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using CliFx.Infrastructure;
Expand Down Expand Up @@ -37,7 +38,7 @@ public async Task I_can_filter_the_export_to_only_include_messages_that_contain_
.EnumerateArray()
.Select(j => j.GetProperty("content").GetString())
.Should()
.AllBe("Some random text");
.AllSatisfy(c => c.Contains("Some random text", StringComparison.Ordinal));
}

[Fact]
Expand Down Expand Up @@ -87,7 +88,7 @@ public async Task I_can_filter_the_export_to_only_include_messages_that_contain_
.EnumerateArray()
.Select(j => j.GetProperty("content").GetString())
.Should()
.AllBe("This has image");
.AllSatisfy(c => c.Contains("This has image", StringComparison.Ordinal));
}

[Fact]
Expand All @@ -112,7 +113,7 @@ public async Task I_can_filter_the_export_to_only_include_messages_that_have_bee
.EnumerateArray()
.Select(j => j.GetProperty("content").GetString())
.Should()
.AllBe("This is pinned");
.AllSatisfy(c => c.Contains("This is pinned", StringComparison.Ordinal));
}

[Fact]
Expand All @@ -137,7 +138,7 @@ public async Task I_can_filter_the_export_to_only_include_messages_that_contain_
.EnumerateArray()
.Select(j => j.GetProperty("content").GetString())
.Should()
.AllBe("This has invite");
.AllSatisfy(c => c.Contains("This has invite", StringComparison.Ordinal));
}

[Fact]
Expand All @@ -162,6 +163,6 @@ public async Task I_can_filter_the_export_to_only_include_messages_that_contain_
.EnumerateArray()
.Select(j => j.GetProperty("content").GetString())
.Should()
.AllBe("This has mention");
.AllSatisfy(c => c.Contains("This has mention", StringComparison.Ordinal));
}
}
2 changes: 1 addition & 1 deletion DiscordChatExporter.Cli.Tests/Specs/HtmlEmbedSpecs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,6 @@ public async Task I_can_export_a_channel_that_contains_a_message_with_a_guild_in
);

// Assert
message.Text().Should().Contain("DiscordChatExporter TestServer");
message.Text().Should().Contain("DiscordChatExporter Test Server");
}
}

0 comments on commit 9b8985a

Please sign in to comment.