testQueueTest.js 526 B

1234567891011121314151617181920212223
  1. var should = require('chai').should();
  2. var testQueue = require('../../app/lib/testQueue.js');
  3. describe('testQueue', function() {
  4. var url = 'http://www.not.existing';
  5. it('should accept a new test with method push', function() {
  6. testQueue.should.have.property('push').that.is.a('function');
  7. var task = {
  8. testId: 'aaaaa',
  9. url: url,
  10. options: {}
  11. };
  12. testQueue.push(task, function(err, json, results) {
  13. done();
  14. });
  15. });
  16. });