const chai = require('ultimate-chai');
const expect = chai.expect;
const sinon = require('sinon');
const logstub = sinon.stub();

const executionTime = require('../')(logstub);

describe('index.js', () => {
  context('when execution time is used', () => {
    
    it('start should be a method', (done) => {
      expect(executionTime.start).to.be.ok();
      done();
    });
    
    it('stop should be a method', (done) => {
      expect(executionTime.stop).to.be.ok();
      done();
    });
    
    it('should return log time', (done) => {
      executionTime.start();  
      setTimeout(function() { 
          expect(executionTime.stop()).to.be.above(1000);
          done();
      }, 1000);
    });
    
  });

});
@@ -636,16 +636,21 @@
 e.stop()
+.time
 ).to.be.
@@ -709,16 +709,398 @@
 );%0A    %0A
+    it('should return words', (done) =%3E %7B%0A      executionTime.start();  %0A      setTimeout(function() %7B%0A          const result = executionTime.stop();%0A          expect(result.time).to.be.ok();%0A          expect(result.words).to.be.ok();%0A          expect(result.preciseWords).to.be.ok();%0A          expect(result.verboseWords).to.be.ok();%0A          done();%0A      %7D, 1000);%0A    %7D);%0A    %0A
   %7D);%0A%0A%7D

update test cases