Skip to content
This repository has been archived by the owner on Sep 3, 2021. It is now read-only.

Commit

Permalink
test: use dirty-chai
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddias committed Mar 16, 2017
1 parent e0da6ee commit 12f1a81
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"devDependencies": {
"aegir": "^11.0.0",
"chai": "^3.5.0",
"dirty-chai": "^1.2.2",
"multihashing-async": "~0.4.4",
"pre-commit": "^1.2.2"
},
Expand All @@ -56,4 +57,4 @@
"greenkeeper[bot] <greenkeeper[bot]@users.noreply.github.com>",
"kumavis <kumavis@users.noreply.github.com>"
]
}
}
7 changes: 5 additions & 2 deletions test/index.spec.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
/* eslint-env mocha */
'use strict'

const expect = require('chai').expect
const chai = require('chai')
const dirtyChai = require('dirty-chai')
const expect = chai.expect
chai.use(dirtyChai)
const multihash = require('multihashes')
const multihashing = require('multihashing-async')

Expand All @@ -22,7 +25,7 @@ describe('CID', () => {

it('handles Buffer multihash', (done) => {
multihashing(Buffer('hello world'), 'sha2-256', (err, mh) => {
expect(err).to.not.exist // eslint-disable-line
expect(err).to.not.exist()
const mhStr = 'QmaozNR7DZHQK1ZcU9p7QdrshMvXqWK6gpu5rmrkPdT3L4'

const cid = new CID(mh)
Expand Down

0 comments on commit 12f1a81

Please sign in to comment.