Permalink
Browse files

switch to mocha

  • Loading branch information...
1 parent 1d3cde9 commit f4061ac24699374fddd72087d537762c9cb48bd4 @bkw bkw committed Dec 4, 2011
Showing with 12 additions and 11 deletions.
  1. +1 −4 Makefile
  2. +4 −0 package.json
  3. +1 −1 test/test-addtask.js
  4. +1 −1 test/test-bind.js
  5. +1 −1 test/test-defaultobject.js
  6. +1 −1 test/test-events.js
  7. +1 −1 test/test-exports.js
  8. +1 −1 test/test-packagejson.js
  9. +1 −1 test/test-return.js
View
5 Makefile
@@ -1,9 +1,6 @@
default: test
test:
- expresso -I lib test/*
-
-coverage:
- expresso -I lib --cov test/*
+ @./node_modules/.bin/mocha --ui exports --reporter list test/*
.PHONY: test
View
4 package.json
@@ -10,6 +10,10 @@
"keywords": ["pool", "limit", "parallel", "async"],
"author": "Bernhard Weisshuhn <bkw@codingforce.com> (https://github.com/bkw)",
"dependencies": {},
+ "devDependencies": {
+ "mocha" : "0.2.x",
+ "should" : "0.3.x"
+ },
"main": "index",
"directories": {
"lib": "./lib"
View
2 test/test-addtask.js
@@ -1,5 +1,5 @@
var should = require('should'),
- delayPool = require('poolr.js').createPool(2),
+ delayPool = require('../lib/poolr.js').createPool(2),
called = 0,
running = 0;
View
2 test/test-bind.js
@@ -1,5 +1,5 @@
var should = require('should'),
- poolr = require('poolr.js').createPool;
+ poolr = require('../lib/poolr.js').createPool;
var someClass = function(someval) {
View
2 test/test-defaultobject.js
@@ -1,5 +1,5 @@
var should = require('should'),
- poolr = require('poolr.js').createPool;
+ poolr = require('../lib/poolr.js').createPool;
var someClass = function(someval) {
View
2 test/test-events.js
@@ -1,5 +1,5 @@
var should = require('should'),
- delayPool = require('poolr.js').createPool(2);
+ delayPool = require('../lib/poolr.js').createPool(2);
var sleep05 = function(callback) {
View
2 test/test-exports.js
@@ -1,4 +1,4 @@
-var poolr = require('poolr.js'),
+var poolr = require('../lib/poolr.js'),
should = require('should');
module.exports = {
View
2 test/test-packagejson.js
@@ -1,5 +1,5 @@
var should = require('should'),
- poolr = require('poolr'),
+ poolr = require('../lib/poolr'),
fs = require('fs');
var pkg = JSON.parse(fs.readFileSync(__dirname + '/../package.json'));
View
2 test/test-return.js
@@ -1,5 +1,5 @@
var should = require('should'),
- delayPool = require('poolr.js').createPool(2);
+ delayPool = require('../lib/poolr.js').createPool(2);
var sleep05 = function(callback) {

0 comments on commit f4061ac

Please sign in to comment.