Add API doc spec

This commit is contained in:
Garen Torikian
2013-04-09 18:03:29 -05:00
parent abbda0643a
commit 756bb5604f

View File

@@ -321,3 +321,14 @@ describe "the `atom` global", ->
expect(atom.sendMessageToBrowserProcess.callCount).toBe 1
expect(atom.sendMessageToBrowserProcess.argsForCall[0][1][0]).toBe "A2"
atom.sendMessageToBrowserProcess.simulateConfirmation('Next')
fdescribe "API documentation", ->
it "meets a minimum threshold", ->
versionHandler = jasmine.createSpy("versionHandler")
atom.getVersion(versionHandler)
waitsFor ->
versionHandler.callCount > 0
runs ->
expect(versionHandler.argsForCall[0][0]).toBeDefined()