Skip to content

Commit

Permalink
remark-images-download: fix tests for node12
Browse files Browse the repository at this point in the history
  • Loading branch information
vhf committed May 25, 2019
1 parent 1c084ea commit 75a2709
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/remark-images-download/__tests__/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,8 @@ describe('mock server tests', () => {
const render = renderFactory({httpRequestTimeout: 500})

return render(file).then(vfile => {
expect(firstMsg(vfile)).toBe(
'getaddrinfo ENOTFOUND doesnotexist-kqwtkk78.com doesnotexist-kqwtkk78.com:80')
expect(firstMsg(vfile)).toContain(
'getaddrinfo ENOTFOUND doesnotexist-kqwtkk78.com')
expect(vfile.contents).toBe(html)
})
})
Expand Down

0 comments on commit 75a2709

Please sign in to comment.