Correct expectations elsewhere in the test suite

This commit is contained in:
Ash Wilson
2019-02-01 15:08:46 -05:00
parent af64c82a7f
commit 31f0174513
2 changed files with 4 additions and 2 deletions

View File

@@ -65,7 +65,9 @@ describe "DecorationManager", ->
{oldProperties, newProperties} = updatedSpy.mostRecentCall.args[0]
expect(oldProperties).toEqual decorationProperties
expect(newProperties).toEqual {type: 'line-number', gutterName: 'line-number', class: 'two'}
expect(newProperties.type).toBe 'line-number'
expect(newProperties.gutterName).toBe 'line-number'
expect(newProperties.class).toBe 'two'
describe "::getDecorations(properties)", ->
it "returns decorations matching the given optional properties", ->

View File

@@ -6861,7 +6861,7 @@ describe('TextEditor', () => {
const marker = editor.markBufferRange([[2, 4], [6, 8]])
const decoration = editor.decorateMarker(marker, {type: 'highlight', class: 'foo'})
expect(editor.decorationsStateForScreenRowRange(0, 5)[decoration.id]).toEqual({
properties: {type: 'highlight', class: 'foo'},
properties: {id: decoration.id, order: Infinity, type: 'highlight', class: 'foo'},
screenRange: marker.getScreenRange(),
bufferRange: marker.getBufferRange(),
rangeIsReversed: false