Merge pull request #185 from overleaf/jpa-import-123

[ExampleDocumentTests] drop out in case of an error during compilation
This commit is contained in:
Jakob Ackermann 2020-07-15 10:57:34 +02:00 committed by GitHub
commit 8277623ecc

View file

@ -235,6 +235,7 @@ describe('Example Documents', function() {
) === 'failure'
) {
console.log('DEBUG: error', error, 'body', JSON.stringify(body))
return done(new Error('Compile failed'))
}
const pdf = Client.getOutputFile(body, 'pdf')
return downloadAndComparePdf(
@ -263,6 +264,7 @@ describe('Example Documents', function() {
) === 'failure'
) {
console.log('DEBUG: error', error, 'body', JSON.stringify(body))
return done(new Error('Compile failed'))
}
const pdf = Client.getOutputFile(body, 'pdf')
return downloadAndComparePdf(