💄 Fix ugly test

This commit is contained in:
Ben Ogle 2014-07-07 18:24:51 -07:00
parent 5d08ecdcb2
commit 2b957beeda

View File

@ -1051,8 +1051,8 @@ describe "DisplayBuffer", ->
expect(displayBuffer.decorationsForScreenRowRange(2, 3)[marker.id][0]).toBe decoration
decoration.destroy()
expect(!!displayBuffer.decorationsForScreenRowRange(2, 3)[marker.id]).toBeFalsy()
expect(!!displayBuffer.decorationForId(decoration.id)).toBeFalsy()
expect(displayBuffer.decorationsForScreenRowRange(2, 3)[marker.id]).not.toBeDefined()
expect(displayBuffer.decorationForId(decoration.id)).not.toBeDefined()
it "will not fail if the decoration is removed twice", ->
decoration.destroy()