UNPKG

374 Btext/coffeescriptView Raw
1should = require "should"
2
3HGAPI = require "../lib"
4
5describe "HGAPI", ->
6
7 it "exposes core classes", ->
8
9 should.exist HGAPI.HGCommandServer, "command server"
10 should.exist HGAPI.HGRepo, "repo"
11
12describe "makeParser", ->
13
14 it "provides a parser instance for this hg version", (done) ->
15 HGAPI.makeParser (err, parser) ->
16 parser.should.have.property.status
17 done()
\No newline at end of file