Fix tests
This commit is contained in:
@@ -3,9 +3,21 @@ var testQueue = require('../../app/lib/testQueue.js');
|
||||
|
||||
describe('testQueue', function() {
|
||||
|
||||
it('should have a method push', function() {
|
||||
var url = 'http://www.not.existing';
|
||||
|
||||
it('should accept a new test with method push', function() {
|
||||
testQueue.should.have.property('push').that.is.a('function');
|
||||
|
||||
|
||||
var task = {
|
||||
testId: 'aaaaa',
|
||||
url: url,
|
||||
options: {}
|
||||
};
|
||||
|
||||
testQueue.push(task, function(err, json, results) {
|
||||
done();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user