mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
💚 Fixes tests for configurable large-file-warning.
This commit is contained in:
@@ -451,9 +451,13 @@ describe "Workspace", ->
|
||||
waitsForPromise ->
|
||||
workspace.open('sample.js').then (e) -> editor = e
|
||||
|
||||
runs ->
|
||||
expect(atom.applicationDelegate.confirm).toHaveBeenCalled()
|
||||
expect(editor.largeFileMode).toBe true
|
||||
runs ->
|
||||
expect(atom.applicationDelegate.confirm).toHaveBeenCalled()
|
||||
expect(editor.largeFileMode).toBe true
|
||||
else
|
||||
runs ->
|
||||
expect(atom.applicationDelegate.confirm).not.toHaveBeenCalled()
|
||||
expect(editor).not.toBeUndefined()
|
||||
|
||||
it "prompts the user to make sure they want to open a file this big", ->
|
||||
atom.config.set "core.warnOnLargeFileLimit", 20
|
||||
|
||||
Reference in New Issue
Block a user