mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-01 13:14:16 +08:00
fix(specs): Ternary operator in jasmine-helper was valid coffee...
This commit is contained in:
parent
a5013c0bbd
commit
285a60493e
2 changed files with 6 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue