mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
Replace fuzzy-finder with fuzzyFinder in spec config key path
This commit is contained in:
@@ -251,28 +251,17 @@ describe 'FuzzyFinder', ->
|
||||
expect(rootView.project.getFilePaths).toHaveBeenCalled()
|
||||
|
||||
describe "path ignoring", ->
|
||||
it "ignores paths that match entries in config.fuzzy-finder.ignoredNames", ->
|
||||
it "ignores paths that match entries in config.fuzzyFinder.ignoredNames", ->
|
||||
spyOn(rootView.project, "getFilePaths").andCallThrough()
|
||||
config.set("fuzzy-finder.ignoredNames", ["tree-view"])
|
||||
config.set("fuzzyFinder.ignoredNames", ["tree-view.js"])
|
||||
rootView.trigger 'fuzzy-finder:toggle-file-finder'
|
||||
finder.maxItems = Infinity
|
||||
finder.miniEditor.setText("file1")
|
||||
|
||||
waitsFor ->
|
||||
finder.list.children('li').length > 0
|
||||
|
||||
runs ->
|
||||
expect(rootView.project.getFilePaths).toHaveBeenCalled()
|
||||
rootView.project.getFilePaths.reset()
|
||||
$(window).trigger 'focus'
|
||||
rootView.trigger 'fuzzy-finder:toggle-file-finder'
|
||||
rootView.trigger 'fuzzy-finder:toggle-file-finder'
|
||||
|
||||
waitsFor ->
|
||||
finder.list.children('li').length > 0
|
||||
|
||||
runs ->
|
||||
expect(rootView.project.getFilePaths).toHaveBeenCalled()
|
||||
expect(finder.list.find("li:contains(tree-view.js)")).not.toExist()
|
||||
|
||||
describe "opening a path into a split", ->
|
||||
beforeEach ->
|
||||
|
||||
Reference in New Issue
Block a user