Skip to content

Commit

Permalink
fix test to pass on both windows and *nix (tested on Windows10 and de…
Browse files Browse the repository at this point in the history
…bian 9 - macOS untested)
  • Loading branch information
cmd430 authored and Philip Scott committed Aug 21, 2019
1 parent 00f0bda commit af04d7b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Binary file added test/expected/args_deb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
6 changes: 4 additions & 2 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,10 @@ async function withArgsMacro (t, { config, title }) {

await genThumbnail('', output, null, config)

const isSame = await looksSame(absPath('./expected/args.png'), output, { tolerance: 5 })
t.true(isSame)
const isSameWin = await looksSame(absPath('./expected/args_win.png'), output, { tolerance: 5 })
const isSameDeb = await looksSame(absPath('./expected/args_deb.png'), output, { tolerance: 5 })

t.true(isSameWin || isSameDeb)
}

function streamReturnMacro (t, { input, title }) {
Expand Down

0 comments on commit af04d7b

Please sign in to comment.