Skip to content

Commit

Permalink
Add test to delete branch.
Browse files Browse the repository at this point in the history
  • Loading branch information
danhper committed Aug 13, 2014
1 parent a8e0c78 commit 55a94d7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/repository-test.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -191,15 +191,26 @@ describe 'Repository', ->
describe '#branch', ->
it 'should list branches', (done) ->
testRepository.branch (err, branches) ->
expect(err).to.be null
expect(branches).to.eql ['master']
done()

it 'should create new branches', (done) ->
testRepository.branch 'foo', (err, branches) ->
expect(err).to.be null
testRepository.branch (err, branches) ->
expect(branches).to.eql ['foo', 'master']
done()

it 'should delete branches', (done) ->
testRepository.branch 'foo', (err, branches) ->
testRepository.branch (err, branches) ->
expect(branches).to.eql ['foo', 'master']
testRepository.branch 'foo', { cli: { D: true } }, (err) ->
expect(err).to.be null
testRepository.branch (err, branches) ->
expect(branches).to.eql ['master']
done()

describe '#checkout', ->
it 'should do basic branch checkout', (done) ->
Expand Down

0 comments on commit 55a94d7

Please sign in to comment.