Skip to content
This repository has been archived by the owner on Oct 8, 2019. It is now read-only.

Commit

Permalink
Merge pull request #255 from blockchain/travis
Browse files Browse the repository at this point in the history
Travis fix
  • Loading branch information
jtormey committed Jan 21, 2016
2 parents 0fc519f + 8e9ecc2 commit aa09340
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/directives/fiat_spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,15 @@ describe "Fiat Directive", ->
)

describe "updateFiat", ->
beforeEach ->
isoScope.fiat = { currencySymbol: '$', amount: 100 }
isoScope.$root = {
# Travis sometimes breaks with the real thing.
$safeApply: () ->
}

describe "(fail)", ->

beforeEach ->
isoScope.fiat = { currencySymbol: '$', amount: 100 }

afterEach ->
isoScope.updateFiat()
expect(isoScope.fiat).toEqual({ currencySymbol: null, amount: null })
Expand Down

0 comments on commit aa09340

Please sign in to comment.