Skip to content

Commit

Permalink
add coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
elbywan committed Sep 14, 2017
1 parent 9429b9e commit 65aee6f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ describe("Wretch", function() {
rejected = await new Promise(res => wretch(`${URL}/customHeaders`).get().badRequest(_ => {
res(true)
}).res().then(result => res(!result)))
wretch().mixdefaults("not an object")
expect(rejected).to.be.true
let accepted = await new Promise(res => wretch(`${URL}/customHeaders`)
.options({ headers: { "X-Custom-Header-3" : "Anything" } })
Expand Down

0 comments on commit 65aee6f

Please sign in to comment.