Skip to content

Commit

Permalink
fix(tests): Fix line endings in FileSystemVaultTests
Browse files Browse the repository at this point in the history
The line endings in the `FileSystemVaultTests` file were changed from `\n` to `\r\n`. This commit fixes the assertions that compare string values to use the correct line endings.
  • Loading branch information
SakuraIsayeki committed Jun 22, 2024
1 parent d19354a commit a0f11ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Nodsoft.MoltenObsidian.Tests/Vaults/FileSystemVaultTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ public async Task GetNoteContent_SimpleNote_Nominal()

// Assert
Assert.NotNull(note);
Assert.Equal(/*lang=md*/"This is a hidden note!\nNot at all.\nIt's just in a folder.", content);
Assert.Equal(/*lang=md*/"This is a hidden note!\r\nNot at all.\r\nIt's just in a folder.", content);
}

/// <summary>
Expand All @@ -203,8 +203,8 @@ public async Task GetNoteContent_ComplexNote_Nominal()
Assert.NotNull(note);

Assert.Equal(
/*lang=md*/"# README\n\nThis is a test vault, meant to be used with the `Nodsoft.MoltenObsidian.Tests` project's test suite.\n\n" +
/*lang=md*/"## See also :\n\nCheck out this #cool_tag and #cooler_tag, and my [[Hidden Note]].",
/*lang=md*/"# README\r\n\r\nThis is a test vault, meant to be used with the `Nodsoft.MoltenObsidian.Tests` project's test suite.\r\n\r\n" +
/*lang=md*/"## See also :\r\n\r\nCheck out this #cool_tag and #cooler_tag, and my [[Hidden Note]].",
content
);

Expand Down

0 comments on commit a0f11ce

Please sign in to comment.