-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Less skipped tests #494
Less skipped tests #494
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,11 +37,7 @@ module.exports = { | |
throw err | ||
} | ||
|
||
if (typeof version === 'object') { // js-ipfs-api output | ||
version = version.Version | ||
} | ||
|
||
console.log(`js-ipfs version: ${version}`) | ||
console.log(`js-ipfs version: ${version.version}`) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should probably use the logger that I've created before, instead of using There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's open an issue for that, and do the conversion, if we do it at once, rather than here and there. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sounds good to me. #495 |
||
}) | ||
}) | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,9 +17,9 @@ module.exports = (http) => { | |
method: 'GET', | ||
url: '/api/v0/version' | ||
}, (res) => { | ||
expect(res.result.version).to.equal(pkgversion) | ||
expect(res.result).to.have.a.property('commit') | ||
expect(res.result).to.have.a.property('repo') | ||
expect(res.result).to.have.a.property('Version', pkgversion) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should not actually check the version rather than just making sure something is there? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Suggestion would be to read version from somewhere, then assert with that, rather than hard coding the version There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. that's exactly what is happening here, There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh, crap, you're right, as always. I'll never get used to Chai/Expect syntax... |
||
expect(res.result).to.have.a.property('Commit') | ||
expect(res.result).to.have.a.property('Repo') | ||
done() | ||
}) | ||
}) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here as below, we should probably try using the logger rather than console.log
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can make that in a single PR and change all of them, no?