Permalink
Browse files

Fix: s/__removed/__deleted/

  • Loading branch information...
1 parent aa01e62 commit c9b173d7d808f22a55224f332f72bd25c5b7c352 @andreyvit committed Apr 17, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/colorize.iced
  2. +1 −1 test/colorize_test.coffee
View
@@ -20,7 +20,7 @@ subcolorize = (key, diff, output, color, indent) ->
else
output color, "#{indent}#{prefix}{"
for own subkey, subvalue of diff
- if m = subkey.match /^(.*)__removed$/
+ if m = subkey.match /^(.*)__deleted$/
subcolorize(m[1], subvalue, output, '-', subindent)
else if m = subkey.match /^(.*)__added$/
subcolorize(m[1], subvalue, output, '+', subindent)
@@ -11,7 +11,7 @@ describe 'colorize', ->
assert.deepEqual ['-42', '+10'], colorizeToArray({ __old: 42, __new: 10 })
it "should return '-<removed key>: <removed value>' for an object diff with a removed key", ->
- assert.deepEqual [' {', '- foo: 42', ' }'], colorizeToArray({ foo__removed: 42 })
+ assert.deepEqual [' {', '- foo: 42', ' }'], colorizeToArray({ foo__deleted: 42 })
it "should return '+<added key>: <added value>' for an object diff with an added key", ->
assert.deepEqual [' {', '+ foo: 42', ' }'], colorizeToArray({ foo__added: 42 })

0 comments on commit c9b173d

Please sign in to comment.