mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Correct expectations elsewhere in the test suite
This commit is contained in:
@@ -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", ->
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user