Skip to content

Commit

Permalink
Fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
edi9999 committed Mar 21, 2017
1 parent 3422a28 commit 2b8c0ce
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions es6/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const JSZip = require("jszip");
const ImageModule = require("./index.js");
const testutils = require("docxtemplater/js/tests/utils");
const shouldBeSame = testutils.shouldBeSame;
const sizeOf = require('image-size');
const sizeOf = require("image-size");

const fileNames = [
"imageExample.docx",
Expand All @@ -28,7 +28,7 @@ const fileNames = [
"expectedTagImage.pptx",
"tagImageCentered.pptx",
"expectedTagImageCentered.pptx",
"expectedInlineResize.docx"
"expectedInlineResize.docx",
];

beforeEach(function () {
Expand All @@ -43,7 +43,7 @@ beforeEach(function () {
};

this.loadAndRender = function () {
const file = testutils.createDoc(this.name)
const file = testutils.createDoc(this.name);
this.doc = new Docxtemplater();
const inputZip = new JSZip(file.loadedContent);
this.doc.loadZip(inputZip).setData(this.data);
Expand Down Expand Up @@ -125,10 +125,10 @@ function testStart() {
it("should work with auto resize", function () {
this.name = "imageInlineExample.docx";
this.expectedName = "expectedInlineResize.docx";
this.opts.getSize = function (img, tagValue, tagName) {
this.opts.getSize = function (img) {
const sizeObj = sizeOf(img);
return [sizeObj.width, sizeObj.height];
}
};
this.data = {firefox: "examples/image.png"};
this.loadAndRender();
});
Expand Down

0 comments on commit 2b8c0ce

Please sign in to comment.