[ExampleDocumentTests] drop out in case of an error during compilation

Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
This commit is contained in:
Jakob Ackermann authored and Jakob Ackermann committed 2020-07-03 11:38:12 +01:00
1 parent c30e6a9d4f
commit 267ff9e7f1
1 file changed
+2
@@ -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(