Use must instead of chai.
This commit is contained in:
parent
8b9389b468
commit
49a49e2a2c
@ -87,7 +87,6 @@
|
||||
"devDependencies": {
|
||||
"babel-eslint": "^3.1.9",
|
||||
"babel-plugin-closure-elimination": "0.0.1",
|
||||
"chai": "~2.1.2",
|
||||
"dependency-check": "^2.4.0",
|
||||
"gulp": "git://github.com/gulpjs/gulp#4.0",
|
||||
"gulp-babel": "^5",
|
||||
@ -96,6 +95,7 @@
|
||||
"gulp-sourcemaps": "^1.5.1",
|
||||
"gulp-watch": "^4.2.2",
|
||||
"mocha": "^2.2.1",
|
||||
"must": "^0.12.0",
|
||||
"node-inspector": "^0.10.1",
|
||||
"sinon": "^1.14.1",
|
||||
"standard": "^4.0.0"
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* eslint-env mocha */
|
||||
|
||||
import {expect} from 'chai'
|
||||
import expect from 'must'
|
||||
|
||||
// ===================================================================
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* eslint-env mocha */
|
||||
|
||||
import {expect} from 'chai'
|
||||
import expect from 'must'
|
||||
|
||||
// ===================================================================
|
||||
|
||||
@ -12,6 +12,12 @@ import {
|
||||
// ===================================================================
|
||||
|
||||
describe('ensureArray', function () {
|
||||
it('wrap the value in an array', function () {
|
||||
const value = 'foo'
|
||||
|
||||
expect(ensureArray(value)).to.eql([value])
|
||||
})
|
||||
|
||||
it('returns an empty array for undefined', function () {
|
||||
expect(ensureArray(undefined)).to.eql([])
|
||||
})
|
||||
@ -21,12 +27,6 @@ describe('ensureArray', function () {
|
||||
|
||||
expect(ensureArray(array)).to.equal(array)
|
||||
})
|
||||
|
||||
it('wrap the value in an object', function () {
|
||||
const value = {}
|
||||
|
||||
expect(ensureArray(value)).to.includes(value)
|
||||
})
|
||||
})
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user