Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasvh committed Dec 3, 2017
1 parent 0b4f922 commit 0e8a924
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
4 changes: 2 additions & 2 deletions tests/node/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
})
});
});
});

0 comments on commit 0e8a924

Please sign in to comment.