Commit 2cd4c09c by Edgar Hipp

better tests for qrcode module

parent 57c3254c
......@@ -124,6 +124,8 @@ describe 'image adding with {% image} syntax', ()->
describe 'qrcode replacing',->
describe 'shoud work without loops',->
zip=null
before (done)->
name='qrExample.docx'
......@@ -149,12 +151,11 @@ describe 'qrcode replacing',->
doc
.render()
it 'shoud work with simple',->
it 'should be 1',->
expect(1).to.equal(1)
it 'should work with simple',->
images=zip.file(/media\/.*.png/)
expect(images.length).to.equal(2)
expect(images[0].asText().length).to.equal(826)
expect(images[1].asText().length).to.equal(17417)
# imageFile=zip.files['word/media/image_generated_1.png']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment