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

Commit 4235ef4

Browse files
committed
test(cli): fix tests for new error messages
1 parent 5977e3f commit 4235ef4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/cli/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ describe('config', () => runOnAndOff((thing) => {
5858
})
5959

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

6464
it('get a config key value', () => {

test/cli/daemon.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,10 @@ describe('daemon', () => {
121121
it('gives error if user hasn\'t run init before', function (done) {
122122
this.timeout(100 * 1000)
123123

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

126126
ipfs('daemon').catch((err) => {
127-
expect(err.stdout).to.have.string(expectedError)
127+
expect(err.stderr).to.have.string(expectedError)
128128
done()
129129
})
130130
})

0 commit comments

Comments
 (0)