Skip to content

Commit

Permalink
Merge pull request #381 from mcmire/fix-jasmine-2-try-catch
Browse files Browse the repository at this point in the history
Fix try/catch on Jasmine 2 so that it works again
  • Loading branch information
jejacks0n committed Jun 29, 2015
2 parents c7ac493 + 1652599 commit 9796f89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class Teaspoon.Jasmine2.Reporters.HTML extends Teaspoon.Reporters.HTML

readConfig: ->
super
jasmine.CATCH_EXCEPTIONS = @config["use-catch"]
jasmine.getEnv().catchExceptions(@config["use-catch"])


envInfo: ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ describe "Teaspoon.Jasmine2.Reporters.HTML", ->

it "sets jasmine.CATCH_EXCEPTIONS", ->
@reporter.readConfig()
expect(jasmine.CATCH_EXCEPTIONS).toBe(@reporter.config["use-catch"])

expect(jasmine.getEnv().catchingExceptions()).toBe(@reporter.config["use-catch"])

describe "#envInfo", ->

Expand Down

0 comments on commit 9796f89

Please sign in to comment.