From 49a49e2a2c6f4172d207214363ce05bdb84b8622 Mon Sep 17 00:00:00 2001 From: Julien Fontanet Date: Mon, 15 Jun 2015 16:41:11 +0200 Subject: [PATCH] Use must instead of chai. --- package.json | 2 +- src/decorators.spec.js | 2 +- src/utils.spec.js | 14 +++++++------- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 985f1f0d7..067d8d826 100644 --- a/package.json +++ b/package.json @@ -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" diff --git a/src/decorators.spec.js b/src/decorators.spec.js index 376477045..ea555ea0b 100644 --- a/src/decorators.spec.js +++ b/src/decorators.spec.js @@ -1,6 +1,6 @@ /* eslint-env mocha */ -import {expect} from 'chai' +import expect from 'must' // =================================================================== diff --git a/src/utils.spec.js b/src/utils.spec.js index fb148c7e2..38142afff 100644 --- a/src/utils.spec.js +++ b/src/utils.spec.js @@ -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) - }) }) // -------------------------------------------------------------------