mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
Give docs errors a better failure message
This commit is contained in:
@@ -350,7 +350,9 @@ describe "the `atom` global", ->
|
||||
results.pop()
|
||||
|
||||
errors = parseInt results.pop().match(/\d+/)
|
||||
expect(errors).toBe 0
|
||||
if errors > 0
|
||||
console.error results.join('\n')
|
||||
throw new Error("There were errors compiling documentation. See console for details.")
|
||||
|
||||
coverage = parseFloat results.pop().match(/.+?%/)
|
||||
expect(coverage).toBeGreaterThan 79
|
||||
|
||||
Reference in New Issue
Block a user