Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
docxtemplater-image-module
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
npm
docxtemplater-image-module
Commits
5404f35a
Commit
5404f35a
authored
Jan 05, 2015
by
Edgar Hipp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding failing test for inserting Inline images (issue #2)
parent
2210abdd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
coffee/test.coffee
+14
-0
examples/imageInlineExample.docx
+0
-0
No files found.
coffee/test.coffee
View file @
5404f35a
...
@@ -5,6 +5,7 @@ expect=require('chai').expect
...
@@ -5,6 +5,7 @@ expect=require('chai').expect
fileNames
=
[
fileNames
=
[
'imageExample.docx'
,
'imageExample.docx'
,
'imageLoopExample.docx'
,
'imageLoopExample.docx'
,
'imageInlineExample.docx'
,
]
]
ImageModule
=
require
(
'../js/index.js'
)
ImageModule
=
require
(
'../js/index.js'
)
...
@@ -119,3 +120,16 @@ describe 'image adding with {% image} syntax', ()->
...
@@ -119,3 +120,16 @@ describe 'image adding with {% image} syntax', ()->
buffer
=
zip
.
generate
({
type
:
"nodebuffer"
})
buffer
=
zip
.
generate
({
type
:
"nodebuffer"
})
fs
.
writeFile
(
"test_multi.docx"
,
buffer
);
fs
.
writeFile
(
"test_multi.docx"
,
buffer
);
it
'should work with inline images'
,()
->
name
=
'imageInlineExample.docx'
imageModule
=
new
ImageModule
()
docX
[
name
].
attachModule
(
imageModule
)
out
=
docX
[
name
]
.
load
(
docX
[
name
].
loadedContent
)
.
setData
({
firefox
:
'examples/image2.png'
})
out
.
render
()
examples/imageInlineExample.docx
0 → 100644
View file @
5404f35a
File added
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment