From f9f9184e663e98d63ca18652979c564e36b0702c Mon Sep 17 00:00:00 2001 From: Vasyl Boroviak Date: Thu, 22 Sep 2016 23:14:09 +1000 Subject: [PATCH] Minor. 2 new comments and linting _after_ running the tests --- package.json | 2 +- src/stampit.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index d6886bc..0198d88 100644 --- a/package.json +++ b/package.json @@ -76,7 +76,7 @@ "cov:generate": "babel-node ./node_modules/.bin/isparta cover --report text --report html test/index.js", "prepublish": "npm run check", "pretest": "npm run build", - "test": "babel-node test | tap-dot", + "test": "(babel-node test | tap-dot) && npm run lint", "clean": "rimraf dist/* && mkdir dist || true", "lint": "eslint src && eslint test", "prebuild": "npm run clean", diff --git a/src/stampit.js b/src/stampit.js index e23bd86..094032d 100644 --- a/src/stampit.js +++ b/src/stampit.js @@ -100,7 +100,7 @@ const allUtilities = { }; /** - * Infected stamp + * Infected stamp. Used as a storage of the infection metadata * @type {Function} * @return {Stamp} */ @@ -124,6 +124,7 @@ function stampit(...args) { args = args.filter(isComposable) .map(arg => isStamp(arg) ? arg : standardiseDescriptor(arg)); + // Calling the standard pure compose function here. return compose.apply(this || baseStampit, args); }