Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

refactor: convert config API to async await #1155

Merged
merged 9 commits into from
Nov 14, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: add logging
  • Loading branch information
Alan Shaw committed Nov 13, 2019
commit ea74f9d66cb64b92d72a55d3ab227acac20fa0b0
2 changes: 2 additions & 0 deletions test/request-api.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ describe('error handling', () => {
})

server.listen(6001, () => {
console.log('requesting...')
ipfsClient('/ip4/127.0.0.1/tcp/6001').config.replace('test/fixtures/r-config.json', (err) => {
console.log(err)
expect(err).to.exist()
expect(err.message).to.match(/invalid json/i)
server.close(done)
Expand Down