UNPKG

jqueue

Version:

MySQL backed plugable Node.js job queue based on the Beanstalk Job Lifecycle

21 lines (14 loc) 541 B
'use strict'; var chai = require('chai'); var sinon = require('sinon'); var expect = chai.expect; var JqueueException = require('../src/exception'); describe('exception:', function() { it('should construct a new jqueueException', function () { var jqueueException = new JqueueException('error', 1); expect(jqueueException.name).to.exist; expect(jqueueException.code).to.exist; expect(jqueueException.message).to.exist; expect(jqueueException.stack).to.exist; }); });