mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 18:13:40 -05:00
increase debugging in acceptance tests
This commit is contained in:
parent
c83102c665
commit
c031ec7a2e
1 changed files with 4 additions and 2 deletions
|
@ -72,13 +72,15 @@ describe "Example Documents", ->
|
||||||
|
|
||||||
it "should generate the correct pdf", (done) ->
|
it "should generate the correct pdf", (done) ->
|
||||||
Client.compileDirectory @project_id, fixturePath("examples"), example_dir, 4242, (error, res, body) =>
|
Client.compileDirectory @project_id, fixturePath("examples"), example_dir, 4242, (error, res, body) =>
|
||||||
console.log "DEBUG: error", error, "body", body
|
if body?.compile?.status is "failure"
|
||||||
|
console.log "DEBUG: error", error, "body", JSON.stringify(body)
|
||||||
pdf = Client.getOutputFile body, "pdf"
|
pdf = Client.getOutputFile body, "pdf"
|
||||||
downloadAndComparePdf(@project_id, example_dir, pdf.url, done)
|
downloadAndComparePdf(@project_id, example_dir, pdf.url, done)
|
||||||
|
|
||||||
it "should generate the correct pdf on the second run as well", (done) ->
|
it "should generate the correct pdf on the second run as well", (done) ->
|
||||||
Client.compileDirectory @project_id, fixturePath("examples"), example_dir, 4242, (error, res, body) =>
|
Client.compileDirectory @project_id, fixturePath("examples"), example_dir, 4242, (error, res, body) =>
|
||||||
console.log "DEBUG: error", error, "body", body
|
if body?.compile?.status is "failure"
|
||||||
|
console.log "DEBUG: error", error, "body", JSON.stringify(body)
|
||||||
pdf = Client.getOutputFile body, "pdf"
|
pdf = Client.getOutputFile body, "pdf"
|
||||||
downloadAndComparePdf(@project_id, example_dir, pdf.url, done)
|
downloadAndComparePdf(@project_id, example_dir, pdf.url, done)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue