Skip to content

Commit

Permalink
Added tests for readmes with Windows linebreaks
Browse files Browse the repository at this point in the history
  • Loading branch information
marekdedic committed Aug 30, 2023
1 parent e5276ef commit cc79afb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions __tests__/tested-version.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@ describe("[env variable mock]", () => {
"Tested up to: 0.42",
"Tested up to:0.42",
"LINE1\nNot Tested up to: 0.41\nTested up to: 0.42\nLINE2",
"LINE1\r\nNot Tested up to: 0.41\r\nTested up to: 0.42\r\nLINE2",
" Tested up to: 0.42",
" Tested up to: 0.42",
"\tTested up to: 0.42",
"\nTested up to: 0.42\n",
"\r\nTested up to: 0.42\r\n",
"Tested up to: 0.42",
])("testedVersion works correctly", async (readme) => {
expect.assertions(1);
Expand Down

0 comments on commit cc79afb

Please sign in to comment.