Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
test(cli): fix tests for new error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomrdias committed Apr 30, 2018
1 parent 1adac02 commit d6f4a35
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/cli/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ describe('config', () => runOnAndOff((thing) => {
})

it('set a config key with invalid json', () => {
return ipfs.fail('config foo {"bar:0} --json')
return ipfs.fail('config foo {\\"bar:0} --json')
})

it('get a config key value', () => {
Expand Down
4 changes: 2 additions & 2 deletions test/cli/daemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,10 @@ describe('daemon', () => {
it('gives error if user hasn\'t run init before', function (done) {
this.timeout(100 * 1000)

const expectedError = 'no initialized ipfs repo found in ' + repoPath
const expectedError = 'No IPFS repo found in ' + repoPath

ipfs('daemon').catch((err) => {
expect(err.stdout).to.have.string(expectedError)
expect(err.stderr).to.have.string(expectedError)
done()
})
})
Expand Down

0 comments on commit d6f4a35

Please sign in to comment.