diff --git a/package.json b/package.json index 76c8fe9..2aa17e9 100644 --- a/package.json +++ b/package.json @@ -72,8 +72,7 @@ "test:node": "mocha tests/node/*.js", "karma": "node karma", "watch": "webpack --progress --colors --watch", - "start": "node tests/server", - "ss": "node $npm_package_version" + "start": "node tests/server" }, "homepage": "https://html2canvas.hertzen.com", "license": "MIT", diff --git a/src/index.js b/src/index.js index 707e192..0279c09 100644 --- a/src/index.js +++ b/src/index.js @@ -41,7 +41,7 @@ const html2canvas = (element: HTMLElement, conf: ?Options): Promise<*> => { const ownerDocument = element.ownerDocument; if (!ownerDocument) { - return Promise.reject(`Provided element is not within a Document`) + return Promise.reject(`Provided element is not within a Document`); } const defaultView = ownerDocument.defaultView; diff --git a/tests/node/package.js b/tests/node/package.js index 133e77a..9435757 100644 --- a/tests/node/package.js +++ b/tests/node/package.js @@ -7,9 +7,9 @@ describe('Package', () => { }); it('should have html2canvas defined', done => { - html2canvas('').catch((err) => { + html2canvas('').catch(err => { assert.equal(err, 'Provided element is not within a Document'); done(); - }) + }); }); });