Skip to content

Commit

Permalink
Add test for inline image
Browse files Browse the repository at this point in the history
  • Loading branch information
edi9999 committed Feb 28, 2017
1 parent ab18811 commit 520fff6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions es6/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ const fileNames = [
"imageExample.docx",
"imageHeaderFooterExample.docx",
"imageLoopExample.docx",
"imageInlineExample.docx",
"expectedInline.docx",
"expectedNoImage.docx",
"expectedHeaderFooter.docx",
"expectedOneImage.docx",
Expand Down Expand Up @@ -76,6 +78,13 @@ function testStart() {
this.loadAndRender();
});

it("should work with inline", function () {
this.name = "imageInlineExample.docx";
this.expectedName = "expectedInline.docx";
this.data = {firefox: "examples/image.png"};
this.loadAndRender();
});

it("should work with centering", function () {
this.name = "imageExample.docx";
this.expectedName = "expectedCentered.docx";
Expand Down
Binary file added examples/expectedInline.docx
Binary file not shown.
Binary file modified examples/imageInlineExample.docx
Binary file not shown.

0 comments on commit 520fff6

Please sign in to comment.