From d55c09c9d36dff2a39e370e0832250a845b9aefa Mon Sep 17 00:00:00 2001 From: Kevin Sawicki & Nathan Sobo Date: Wed, 26 Jun 2013 14:10:36 -0600 Subject: [PATCH] Nuke documentation threshold specs We're going to make it a lint task that's run via grunt. --- spec/app/atom-spec.coffee | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/spec/app/atom-spec.coffee b/spec/app/atom-spec.coffee index 394015c22..a6528b78e 100644 --- a/spec/app/atom-spec.coffee +++ b/spec/app/atom-spec.coffee @@ -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 ''