mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 19:53:41 -05:00
[ExampleDocumentTests] drop out in case of an error during compilation
Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
This commit is contained in:
parent
2b342c6e53
commit
a5c3bad7f1
1 changed files with 2 additions and 0 deletions
|
@ -235,6 +235,7 @@ describe('Example Documents', function() {
|
||||||
) === 'failure'
|
) === 'failure'
|
||||||
) {
|
) {
|
||||||
console.log('DEBUG: error', error, 'body', JSON.stringify(body))
|
console.log('DEBUG: error', error, 'body', JSON.stringify(body))
|
||||||
|
return done(new Error("Compile failed"))
|
||||||
}
|
}
|
||||||
const pdf = Client.getOutputFile(body, 'pdf')
|
const pdf = Client.getOutputFile(body, 'pdf')
|
||||||
return downloadAndComparePdf(
|
return downloadAndComparePdf(
|
||||||
|
@ -263,6 +264,7 @@ describe('Example Documents', function() {
|
||||||
) === 'failure'
|
) === 'failure'
|
||||||
) {
|
) {
|
||||||
console.log('DEBUG: error', error, 'body', JSON.stringify(body))
|
console.log('DEBUG: error', error, 'body', JSON.stringify(body))
|
||||||
|
return done(new Error("Compile failed"))
|
||||||
}
|
}
|
||||||
const pdf = Client.getOutputFile(body, 'pdf')
|
const pdf = Client.getOutputFile(body, 'pdf')
|
||||||
return downloadAndComparePdf(
|
return downloadAndComparePdf(
|
||||||
|
|
Loading…
Reference in a new issue