Skip to content

Commit

Permalink
test: fix float tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmlnc committed Aug 11, 2023
1 parent a978e77 commit 141d745
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions __snapshots__/unique.e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ exports['Options Unique {"pattern":["./file.md","file.md","*"],"options":{"cwd":
]

exports['Options Unique {"pattern":["./file.md","file.md","*"],"options":{"cwd":"fixtures","unique":true}} (sync) 1'] = [
"./file.md"
"file.md"
]

exports['Options Unique {"pattern":["./file.md","file.md","*"],"options":{"cwd":"fixtures","unique":true}} (async) 1'] = [
"./file.md"
"file.md"
]

exports['Options Unique {"pattern":["./file.md","file.md","*"],"options":{"cwd":"fixtures","unique":true}} (stream) 1'] = [
"./file.md"
"file.md"
]
4 changes: 4 additions & 0 deletions src/tests/e2e/options/unique.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ runner.suite('Options Unique', {
cwd: 'fixtures',
unique: true,
},
// There's a race going on here. On some OS the values may float.
resultTransform: (entry) => {
return entry.replace('./', '');
},
},
],
});

0 comments on commit 141d745

Please sign in to comment.