fix(specs): Ternary operator in jasmine-helper was valid coffee...

This commit is contained in:
Ben Gotow 2015-11-17 17:48:32 -08:00
parent a5013c0bbd
commit 285a60493e
2 changed files with 6 additions and 3 deletions

View file

@ -537,7 +537,7 @@ describe "populated composer", ->
NylasTestUtils.loadKeymap("internal_packages/composer/keymaps/composer")
@$composer = @composer.refs.composerWrap
fit "sends the draft on cmd-enter", ->
it "sends the draft on cmd-enter", ->
NylasTestUtils.keyPress("cmd-enter", React.findDOMNode(@$composer))
expect(Actions.sendDraft).toHaveBeenCalled()
expect(Actions.sendDraft.calls.length).toBe 1
@ -546,7 +546,7 @@ describe "populated composer", ->
NylasTestUtils.keyPress("enter", React.findDOMNode(@$composer))
expect(Actions.sendDraft).not.toHaveBeenCalled()
fit "doesn't let you send twice", ->
it "doesn't let you send twice", ->
NylasTestUtils.keyPress("cmd-enter", React.findDOMNode(@$composer))
expect(Actions.sendDraft).toHaveBeenCalled()
expect(Actions.sendDraft.calls.length).toBe 1

View file

@ -30,7 +30,10 @@ module.exports.runSpecSuite = (specSuite, logFile, logErrors=true) ->
if process.env.JANKY_SHA1
grim = require 'grim'
grim.logDeprecations() if grim.getDeprecationsLength() > 0
NylasEnv.exit(runner.results().failedCount > 0 ? 1 : 0)
if runner.results().failedCount > 0
NylasEnv.exit(1)
else
NylasEnv.exit(0)
else
N1SpecReporter = require './n1-spec-reporter'
reporter = new N1SpecReporter()