mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Nuke documentation threshold specs
We're going to make it a lint task that's run via grunt.
This commit is contained in:
committed by
Nathan Sobo
parent
f4300b8cab
commit
d55c09c9d3
@@ -293,28 +293,3 @@ describe "the `atom` global", ->
|
||||
describe ".getVersion", ->
|
||||
it "returns the current version number", ->
|
||||
expect(typeof atom.getVersion()).toBe 'string'
|
||||
|
||||
describe "API documentation", ->
|
||||
it "meets a minimum threshold for /app (with no errors)", ->
|
||||
docRunner = jasmine.createSpy("docRunner")
|
||||
Exec "./node_modules/.bin/coffee ./node_modules/.bin/biscotto -- --statsOnly src/app/", cwd: project.resolve('../..'), docRunner
|
||||
waitsFor ->
|
||||
docRunner.callCount > 0
|
||||
|
||||
runs ->
|
||||
# error
|
||||
expect(docRunner.argsForCall[0][0]).toBeNull()
|
||||
|
||||
results = docRunner.argsForCall[0][1].split("\n")
|
||||
results.pop()
|
||||
|
||||
errors = parseInt results.pop().match(/\d+/)
|
||||
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 75
|
||||
|
||||
# stderr
|
||||
expect(docRunner.argsForCall[0][2]).toBe ''
|
||||
|
||||
Reference in New Issue
Block a user