Skip to content

Commit 3576f46

Browse files
committed
Add ignore-ssl-errors=true to the test to get https assets to work.
1 parent 396a252 commit 3576f46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/index.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ test 'load external js', (st) ->
132132

133133
enrichedHtml = fs.readFileSync(path.join(__dirname, 'external-js.html'), 'utf8')
134134
filename = path.join(__dirname, 'external-js.pdf')
135-
pdf.create(enrichedHtml).toFile filename, (error, pdf) ->
135+
pdf.create(enrichedHtml, phantomArgs: ['--ignore-ssl-errors=true']).toFile filename, (error, pdf) ->
136136
st.error(error)
137137
st.assert(pdf.filename == filename, 'Returns the filename from the phantom script')
138138
st.assert(fs.existsSync(pdf.filename), 'Saves the pdf with a custom page size and footer')

0 commit comments

Comments
 (0)