Skip to content

Commit

Permalink
update log text
Browse files Browse the repository at this point in the history
  • Loading branch information
svenkatreddy committed May 26, 2017
1 parent 6578c3b commit 70c3ce9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ const performance = (logInstance) => {
const words = prettyHrtime(diff);
const preciseWords = prettyHrtime(diff, {precise:true});
const verboseWords = prettyHrtime(diff, {verbose:true});
if(logInstance) {
if (logInstance) {
logInstance('Total Time:')
logInstance(time);
}

return {
time: time,
words: words,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "execution-time",
"version": "1.0.0",
"version": "1.1.0",
"description": "ultility to measure execution time",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion test/index-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const expect = chai.expect;
const sinon = require('sinon');
const logstub = sinon.stub();

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

describe('index.js', () => {
context('when execution time is used', () => {
Expand Down

0 comments on commit 70c3ce9

Please sign in to comment.