Fix hang in app.auth.test.js and enable running on make check

Closes #38 (yay!)
This commit is contained in:
Sandro Santilli 2012-07-16 13:41:44 +02:00
parent 192bc736ca
commit 8fb65874f0
2 changed files with 4 additions and 4 deletions

View File

@ -17,7 +17,8 @@ test('valid api key should allow insert in protected tables', function(done){
method: 'GET' method: 'GET'
},{}, function(res) { },{}, function(res) {
assert.equal(res.statusCode, 200, res.body); assert.equal(res.statusCode, 200, res.body);
}, function() { done(); }); done();
});
}); });
test('invalid api key should NOT allow insert in protected tables', function(done){ test('invalid api key should NOT allow insert in protected tables', function(done){

View File

@ -38,9 +38,8 @@ mocha -u tdd \
test/unit/metadata.test.js \ test/unit/metadata.test.js \
test/unit/oauth.test.js \ test/unit/oauth.test.js \
test/unit/psql.test.js \ test/unit/psql.test.js \
test/acceptance/app.test.js test/acceptance/app.test.js \
test/acceptance/app.auth.test.js
#mocha -u tdd test/acceptance/app.auth.test.js # hangs
cleanup cleanup