updated tests added more slug tests
This commit is contained in:
parent
b72f47a99f
commit
d30ae09b9b
|
@ -1,5 +1,4 @@
|
|||
using Wave.Data;
|
||||
using Wave.Data.Migrations.postgres;
|
||||
|
||||
namespace Wave.Tests.Data;
|
||||
|
||||
|
@ -40,6 +39,13 @@ public class ArticleTest {
|
|||
Assert.That(Article.Slug, Is.EqualTo("auto-generating-slugs-was-a-mistake-i-hate-this-______-%E2%82%AC"));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void SlugFromTitleLongerThan64CharacterWithSpecialCharacterEscapeSize2AtPosition56() {
|
||||
Article.Title = "Auto generating slugs was a mistake I hate this _______ üa";
|
||||
Article.UpdateSlug();
|
||||
Assert.That(Article.Slug, Is.EqualTo("auto-generating-slugs-was-a-mistake-i-hate-this-_______-%C3%BCa"));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void SlugFromTitleLongerThan64CharacterWithSpecialCharacterEscapeSize3AtPosition56() {
|
||||
Article.Title = "Auto generating slugs was a mistake I hate this _______ €";
|
||||
|
@ -47,6 +53,13 @@ public class ArticleTest {
|
|||
Assert.That(Article.Slug, Is.EqualTo("auto-generating-slugs-was-a-mistake-i-hate-this-_______-"));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void SlugFromTitleLongerThan64CharacterWithSpecialCharacterEscapeSize2AtPosition57() {
|
||||
Article.Title = "Auto generating slugs was a mistake I hate this ________ üa";
|
||||
Article.UpdateSlug();
|
||||
Assert.That(Article.Slug, Is.EqualTo("auto-generating-slugs-was-a-mistake-i-hate-this-________-%C3%BCa"));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void SlugFromTitleLongerThan64CharacterWithSpecialCharacterEscapeSize3AtPosition57() {
|
||||
Article.Title = "Auto generating slugs was a mistake I hate this ________ €";
|
||||
|
|
Loading…
Reference in a new issue