Permalink
Browse files

switching over to using chaijs for expectations

  • Loading branch information...
1 parent fe96457 commit 2bd419f994d35163ad0002089ffad81f509fac2a Ryan Fitzgerald committed Apr 14, 2012
View
@@ -12,21 +12,18 @@ test-unit:
@./node_modules/.bin/mocha \
--ui $(ui) \
--reporter $(REPORTER) \
- --require should \
$(UNITTESTFILES)
test-integration:
@./node_modules/.bin/mocha \
--ui $(ui) \
--reporter $(REPORTER) \
- --require should \
$(INTEGRATIONTESTFILES)
test-spec:
@./node_modules/.bin/mocha \
--ui bdd \
--reporter spec \
- --require should \
--grep "$(grep)" \
$(UNITTESTFILES) $(INTEGRATIONTESTFILES)
View
@@ -22,7 +22,7 @@
},
"devDependencies": {
"mocha" : "1.0.x",
- "should": "0.5.x"
+ "chai": "0.5.x"
},
"scripts": {
"test" : "make test"
@@ -1,7 +1,7 @@
var dynode = require("../../lib/dynode"),
DynamoDB = require('../test-helper'),
util = require('utile'),
- should = require('should');
+ should = require('chai').should();
describe('Dynode Integration Tests', function() {
@@ -1,5 +1,5 @@
var STS = require("../../lib/dynode/sts").STS,
- should = require('should');
+ should = require('chai').should();
describe('STS Client Integration Tests', function() {
var sts;
@@ -40,13 +40,13 @@ describe('STS Client Integration Tests', function() {
it('should throw exception when access key isnt given', function() {
var func = function(){ new STS({secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY});};
- should.throws(func);
+ should.throw(func);
});
it('should throw exception when secret access key isnt given', function() {
var func = function(){ new STS({accessKeyId: process.env.AWS_ACCEESS_KEY_ID});};
- should.throws(func);
+ should.throw(func);
});
});
@@ -1,5 +1,5 @@
var AmazonError = require("../../lib/dynode/amazon-error"),
- should = require('should');
+ should = require('chai').should();
describe("Amazon Error Handling", function() {
View
@@ -1,6 +1,6 @@
var Client = require("../../lib/dynode/client").Client,
util = require('utile'),
- should = require('should');
+ should = require('chai').should();
describe("DynamoDB Client unit tests", function(){
var realRequest,
View
@@ -1,6 +1,6 @@
var Types = require("../../lib/dynode/types"),
util = require('util'),
- should = require('should');
+ should = require('chai').should();
describe('Types', function() {

0 comments on commit 2bd419f

Please sign in to comment.