Permalink
Browse files

Move to chai.js

  • Loading branch information...
1 parent 7a98cc3 commit 5904eeeea41e533fb11ae5c1a88775d46b9fac7a @vesln committed May 9, 2012
Showing with 37 additions and 8 deletions.
  1. +1 −2 Makefile
  2. +4 −4 package.json
  3. +6 −1 test/app.test.js
  4. +6 −1 test/cli.test.js
  5. +5 −0 test/commands.test.js
  6. +5 −0 test/formatter.test.js
  7. +5 −0 test/storage.test.js
  8. +5 −0 test/todos.test.js
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');

0 comments on commit 5904eee

Please sign in to comment.