it('should cleanup events with the destroy method', function () { sinon.spy(Events, 'off'); var timeController = new TimeController(canvas); timeController.destroy(); Events.off.should.have.been.called; Events.off.restore(); timeController.destroy(); });
it('should return object when calling destroy method', function () { var timeController = new TimeController(canvas); timeController.destroy().should.equal(timeController); });
setTimeout(function () { timeController.processMinute.should.have.been.called; spy.restore(); timeController.destroy(); done(); }, 300);
it('should return an instantiatable', function () { var timeController = new TimeController(canvas); timeController.should.be.ok; timeController.destroy(); });