mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
Verify logged warning parsing invalid.plist
This commit is contained in:
@@ -260,6 +260,7 @@ describe "Snippets extension", ->
|
||||
|
||||
it "loads snippets from all TextMate packages with snippets", ->
|
||||
jasmine.unspy(LoadSnippetsTask.prototype, 'loadTextMateSnippets')
|
||||
spyOn(console, 'warn')
|
||||
snippets.loaded = false
|
||||
snippets.loadAll()
|
||||
|
||||
@@ -276,6 +277,10 @@ describe "Snippets extension", ->
|
||||
}
|
||||
"""
|
||||
|
||||
# warn about invalid.plist
|
||||
expect(console.warn).toHaveBeenCalled()
|
||||
expect(console.warn.calls.length).toBe 1
|
||||
|
||||
it "terminates the worker when loading completes", ->
|
||||
jasmine.unspy(LoadSnippetsTask.prototype, 'loadAtomSnippets')
|
||||
spyOn(console, "warn")
|
||||
|
||||
Reference in New Issue
Block a user