Skip to content
This repository has been archived by the owner on Dec 12, 2018. It is now read-only.

Commit

Permalink
remove fragile/non critical test
Browse files Browse the repository at this point in the history
  • Loading branch information
typerandom committed Dec 16, 2015
1 parent 52ef8da commit e883a64
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions test/it/api_auth_it.js
Expand Up @@ -615,31 +615,6 @@ describe('Application.authenticateApiRequest',function(){
});
});

it('should return an error if called multiple times', function(done) {
var mochaErrorListener = process.listeners('uncaughtException').pop();

process.removeListener('uncaughtException', mochaErrorListener);

process.nextTick(function () {
process.listeners('uncaughtException').push(mochaErrorListener);
});

process.once('uncaughtException', function (err) {
assert.equal(err.message, 'Callback has already been called once. Assert that your scopeFactory doesn\'t return a result while also calling the callback.');
done();
});

app.authenticateApiRequest({
request: requestObject,
scopeFactory: function(account, requestedScope, callback){
callback(null, '123');
return ['123'];
}
},function(err){
assert.isNull(err);
});
});

it('should call the scope factory with the requested scope', function(done) {
app.authenticateApiRequest({
request: requestObject,
Expand Down

0 comments on commit e883a64

Please sign in to comment.