Skip to content

Commit

Permalink
renamed getStyle() to style
Browse files Browse the repository at this point in the history
  • Loading branch information
AriaMinaei committed Nov 2, 2013
1 parent 8b158eb commit 5cfd6cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions scripts/coffee/lib/PrettyError.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = class PrettyError

@_renderer.style @_style

getStyle: ->
_getStyle: ->

@_style

Expand Down Expand Up @@ -118,7 +118,7 @@ module.exports = class PrettyError

obj

for prop in ['renderer'] then do ->
for prop in ['renderer', 'style'] then do ->

methodName = '_get' + prop[0].toUpperCase() + prop.substr(1, prop.length)

Expand Down
6 changes: 3 additions & 3 deletions scripts/coffee/test/PrettyError.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ it "should return a string", ->

p.getObject(error "hello").should.be.an 'object'

describe "getStyle()"
describe "style"

it "should, by default, return the contents in prettyError/defaultStyle", ->

p = new PrettyError

defaultStyle = mod 'prettyError/defaultStyle'

p.getStyle().should.be.like defaultStyle()
p.style.should.be.like defaultStyle()

it "should return different contents after appending some styles", ->

Expand All @@ -52,7 +52,7 @@ it "should return different contents after appending some styles", ->

defaultStyle = mod 'prettyError/defaultStyle'

p.getStyle().should.not.be.like defaultStyle()
p.style.should.not.be.like defaultStyle()

describe "render()"

Expand Down

0 comments on commit 5cfd6cb

Please sign in to comment.