Skip to content

Commit

Permalink
Newlines or something
Browse files Browse the repository at this point in the history
  • Loading branch information
notatestuser committed Nov 17, 2014
1 parent ba250f6 commit 43e5d51
Showing 1 changed file with 35 additions and 35 deletions.
70 changes: 35 additions & 35 deletions test/commit.test.coffee
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
should = require 'should'
fixtures = require './fixtures'
git = require '../src'
Commit = require '../src/commit'
Tree = require '../src/tree'

describe "Commit", ->
describe "#tree", ->
repo = git "#{__dirname}/fixtures/branched"
tree = null
before (done) ->
repo.commits "master", (err, commits) ->
tree = commits[0].tree()
done err

it "passes a tree", ->
tree.should.be.an.instanceof Tree


describe "#parents", ->
repo = fixtures.branched
parents = null
parent = null
before (done) ->
repo.commits "something", (err, commits) ->
parents = commits[0].parents()
parent = commits[1]
done err

it "is an Array of Commits", ->
parents.should.be.an.instanceof Array
parents[0].should.be.an.instanceof Commit

it "has the parent commit", ->
parents[0].id.should.eql parent.id
should = require 'should'
fixtures = require './fixtures'
git = require '../src'
Commit = require '../src/commit'
Tree = require '../src/tree'

describe "Commit", ->
describe "#tree", ->
repo = git "#{__dirname}/fixtures/branched"
tree = null
before (done) ->
repo.commits "master", (err, commits) ->
tree = commits[0].tree()
done err

it "passes a tree", ->
tree.should.be.an.instanceof Tree


describe "#parents", ->
repo = fixtures.branched
parents = null
parent = null
before (done) ->
repo.commits "something", (err, commits) ->
parents = commits[0].parents()
parent = commits[1]
done err

it "is an Array of Commits", ->
parents.should.be.an.instanceof Array
parents[0].should.be.an.instanceof Commit

it "has the parent commit", ->
parents[0].id.should.eql parent.id

0 comments on commit 43e5d51

Please sign in to comment.