mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-28 09:01:28 +00:00
Merge pull request #185 from overleaf/jpa-import-123
[ExampleDocumentTests] drop out in case of an error during compilation
This commit is contained in:
commit
8277623ecc
1 changed files with 2 additions and 0 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue