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
54016475
Commit
54016475
authored
Dec 13, 2015
by
Edgar HIPP
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update tests for node v4+
parent
a25ffa86
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
coffee/imgReplacer.coffee
+1
-0
coffee/test.coffee
+2
-2
No files found.
coffee/imgReplacer.coffee
View file @
54016475
...
...
@@ -62,6 +62,7 @@ module.exports= class ImgReplacer
@
qr
[
u
]
=
new
DocxQrCode
(
png
,
@
xmlTemplater
,
imgName
,
num
,
@
getDataFromString
)
@
qr
[
u
].
decode
(
@
imageSetter
)
catch
e
console
.
error
e
@
imageSetter
(
mockedQrCode
)
dat
=
png
.
decode
(
finished
)
else
...
...
coffee/test.coffee
View file @
54016475
...
...
@@ -245,7 +245,7 @@ describe 'qrcode replacing',->
images
=
zip
.
file
(
/media\/.*.png/
)
expect
(
images
.
length
).
to
.
equal
(
3
)
expect
(
images
[
0
].
asText
().
length
).
to
.
equal
(
826
)
expect
(
images
[
1
].
asText
().
length
).
to
.
equal
(
12888
)
expect
(
images
[
1
].
asText
().
length
).
to
.
be
.
within
(
12888
,
12900
)
expect
(
images
[
2
].
asText
().
length
).
to
.
be
.
within
(
17417
,
17440
)
done
()
...
...
@@ -272,7 +272,7 @@ describe 'qrcode replacing',->
images
=
zip
.
file
(
/media\/.*.png/
)
expect
(
images
.
length
).
to
.
equal
(
3
)
expect
(
images
[
0
].
asText
().
length
).
to
.
equal
(
826
)
expect
(
images
[
1
].
asText
().
length
).
to
.
equal
(
12888
)
expect
(
images
[
1
].
asText
().
length
).
to
.
be
.
within
(
12888
,
12900
)
expect
(
images
[
2
].
asText
().
length
).
to
.
be
.
within
(
17417
,
17440
)
done
()
...
...
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