mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Add specs for Git.isIgnored
This commit is contained in:
committed by
Corey Johnson
parent
a9baf54707
commit
f5db2b63d8
@@ -28,3 +28,12 @@ describe "Git", ->
|
||||
it "returns a branch name for a non-empty repository", ->
|
||||
repo = new Git(require.resolve('fixtures/git/master.git'))
|
||||
expect(repo.getShortHead()).toBe 'master'
|
||||
|
||||
describe "isIgnored()", ->
|
||||
it "returns true for an ignored path", ->
|
||||
repo = new Git(require.resolve('fixtures/git/ignore.git'))
|
||||
expect(repo.isIgnored('a.txt')).toBeTruthy()
|
||||
|
||||
it "returns false for a non-ignored path", ->
|
||||
repo = new Git(require.resolve('fixtures/git/ignore.git'))
|
||||
expect(repo.isIgnored('b.txt')).toBeFalsy()
|
||||
Reference in New Issue
Block a user