Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Move to chai.js

  • Loading branch information...
commit 5904eeeea41e533fb11ae5c1a88775d46b9fac7a 1 parent 7a98cc3
@vesln authored
View
3  Makefile
@@ -2,11 +2,10 @@ TESTS = test/*.test.js
test:
@NODE_ENV=test ./node_modules/.bin/mocha \
- --require should \
--reporter spec \
$(TESTS)
init:
chmod 777 ./data
-.PHONY: test init
+.PHONY: test init
View
8 package.json
@@ -10,8 +10,8 @@
, "colors": "0.6.0-1"
}
, "devDependencies": {
- "mocha": "0.3.3"
- , "should": "0.5.1"
+ "mocha": "*"
+ , "chai": "*"
, "sinon": "1.3.1"
}
, "repository" : {
@@ -27,7 +27,7 @@
, "bin": {
"todo": "./bin/todo"
}
- , "engines": {
+ , "engines": {
"node": ">= 0.6.0 < 0.7.0"
}
-}
+}
View
7 test/app.test.js
@@ -6,7 +6,12 @@
*/
/**
- * Test dependencies.
+ * Support.
+ */
+var should = require('chai').should();
+
+/**
+ * Dependencies.
*/
var flatiron = require('flatiron');
View
7 test/cli.test.js
@@ -6,7 +6,12 @@
*/
/**
- * Test dependencies.
+ * Support.
+ */
+var should = require('chai').should();
+
+/**
+ * Dependencies.
*/
var flatiron = require('flatiron');
var path = require('path');
View
5 test/commands.test.js
@@ -5,6 +5,11 @@
* MIT License.
*/
+/**
+ * Support.
+ */
+var should = require('chai').should();
+
var sinon = require('sinon'),
init = require('../lib/commands').init,
Todos = require('../lib/todos'),
View
5 test/formatter.test.js
@@ -6,6 +6,11 @@
*/
/**
+ * Support.
+ */
+var should = require('chai').should();
+
+/**
* The tests object.
*
* @type {Object}
View
5 test/storage.test.js
@@ -6,6 +6,11 @@
*/
/**
+ * Support.
+ */
+var should = require('chai').should();
+
+/**
* Test dependencies.
*/
var Storr = require('storr');
View
5 test/todos.test.js
@@ -5,6 +5,11 @@
* MIT License.
*/
+/**
+ * Support.
+ */
+var should = require('chai').should();
+
var Todos = require('../lib/todos'),
Storage = require('./support/fake_storage');
Please sign in to comment.
Something went wrong with that request. Please try again.