Add support for different formats in the timestamp markdown node

Closes #662
This commit is contained in:
Tyrrrz
2023-02-12 16:12:41 +02:00
parent 75b942f66c
commit d99958a9b1
34 changed files with 321 additions and 156 deletions

View File

@@ -1,7 +1,6 @@
using System.Threading.Tasks;
using AngleSharp.Dom;
using DiscordChatExporter.Cli.Tests.Infra;
using DiscordChatExporter.Cli.Tests.TestData;
using DiscordChatExporter.Core.Discord;
using FluentAssertions;
using Xunit;
@@ -11,7 +10,7 @@ namespace DiscordChatExporter.Cli.Tests.Specs;
public class HtmlMentionSpecs
{
[Fact]
public async Task User_mention_is_rendered_correctly()
public async Task Message_with_a_user_mention_is_rendered_correctly()
{
// Act
var message = await ExportWrapper.GetMessageAsHtmlAsync(
@@ -25,7 +24,7 @@ public class HtmlMentionSpecs
}
[Fact]
public async Task Text_channel_mention_is_rendered_correctly()
public async Task Message_with_a_text_channel_mention_is_rendered_correctly()
{
// Act
var message = await ExportWrapper.GetMessageAsHtmlAsync(
@@ -38,7 +37,7 @@ public class HtmlMentionSpecs
}
[Fact]
public async Task Voice_channel_mention_is_rendered_correctly()
public async Task Message_with_a_voice_channel_mention_is_rendered_correctly()
{
// Act
var message = await ExportWrapper.GetMessageAsHtmlAsync(
@@ -51,7 +50,7 @@ public class HtmlMentionSpecs
}
[Fact]
public async Task Role_mention_is_rendered_correctly()
public async Task Message_with_a_role_mention_is_rendered_correctly()
{
// Act
var message = await ExportWrapper.GetMessageAsHtmlAsync(