mirror of
https://github.com/atom/atom.git
synced 2026-01-21 04:48:12 -05:00
Spike out specs
This commit is contained in:
@@ -118,6 +118,11 @@ describe "Project", ->
|
||||
expect(paths).not.toContain('a')
|
||||
expect(paths).toContain('b')
|
||||
|
||||
it "ignores files in gitignore for projects in a git tree", ->
|
||||
project.setPath(require.resolve('fixtures/git/working-dir'))
|
||||
paths = project.getFilePaths()
|
||||
expect(paths).not.toContain('ignored.txt')
|
||||
|
||||
describe ".scan(options, callback)", ->
|
||||
describe "when called with a regex", ->
|
||||
it "calls the callback with all regex matches in all files in the project", ->
|
||||
|
||||
1
spec/fixtures/git/working-dir/.gitignore
vendored
Normal file
1
spec/fixtures/git/working-dir/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
ignored.txt
|
||||
Reference in New Issue
Block a user