mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Return default value of true from TextEditor.getAutoHeight
When we need to check for unassigned in the deprecated code path, we can just read the instance variable directly to avoid getting the deafult. Signed-off-by: Antonio Scandurra <as-cii@github.com>
This commit is contained in:
@@ -5507,8 +5507,8 @@ describe "TextEditor", ->
|
||||
expect(editor.getScrollPastEnd()).toBe(false)
|
||||
|
||||
describe "auto height", ->
|
||||
it "returns undefined by default but can be customized", ->
|
||||
expect(editor.getAutoHeight()).toBeUndefined()
|
||||
it "returns true by default but can be customized", ->
|
||||
expect(editor.getAutoHeight()).toBe(true)
|
||||
editor.update({autoHeight: false})
|
||||
expect(editor.getAutoHeight()).toBe(false)
|
||||
editor.update({autoHeight: true})
|
||||
|
||||
Reference in New Issue
Block a user