Skip to content

Commit

Permalink
Merge pull request #33 from sirap-group/32-add-test-for-module-exports
Browse files Browse the repository at this point in the history
fix #32 - add a test to check the module export
  • Loading branch information
Rémi Becheras committed Jan 6, 2017
2 parents 52c9db2 + db2942a commit 4b6eafc
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/index.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
'use strict'

var path = require('path')
var chai = require('chai')
var ConnectSequence = require(path.resolve('./index'))

var describe = global.describe
var it = global.it
var expect = chai.expect

describe('The global exported module', function () {
it('should export the ConnectSequence class', function () {
expect(ConnectSequence).to.be.a('function')
expect(ConnectSequence.prototype).to.be.an('object')
expect(ConnectSequence.prototype.constructor).to.be.a('function')
expect(ConnectSequence.name).to.equal('ConnectSequence')
})
})

0 comments on commit 4b6eafc

Please sign in to comment.