Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated a couple tests to pass under the new lib/dork design.

  • Loading branch information...
commit 33b7568a0fd83dd3056e60ac178e37a4297fdb9e 1 parent af136bd
@leeola authored
Showing with 4 additions and 17 deletions.
  1. +2 −9 test/dork.js
  2. +2 −8 test/index.js
View
11 test/dork.js
@@ -27,15 +27,8 @@ describe('dork', function () {
dork = dork_lib.create()
})
- it('should return a dork object instance', function () {
- // To assert it's identity we're just going to make sure
- // some basic dork vars exist.
- should.exist(dork.active_suite)
- // And since the dork object is not that unique, lets make sure it's
- // not a suite/test object.
- should.not.exist(dork.add_suite)
- should.not.exist(dork.add_test)
- should.not.exist(dork.fn)
+ it('should return a dork instance', function () {
+ dork.should.be.an.instanceof(dork_lib.Dork)
})
it('should be a unique object each execution', function () {
View
10 test/index.js
@@ -21,15 +21,9 @@ describe('index', function () {
it('should return a dork instance', function () {
var index = require('../lib')
+ var Dork = require('../lib/dork').Dork
- // To assert it's identity we're just going to make sure
- // some basic dork vars exist.
- should.exist(index.active_suite)
- // And since the dork object is not that unique, lets make sure it's
- // not a suite/test object.
- should.not.exist(index.add_suite)
- should.not.exist(index.add_test)
- should.not.exist(index.fn)
+ index.should.be.an.instanceof(Dork)
})
it('should expose the inner library modules', function () {
Please sign in to comment.
Something went wrong with that request. Please try again.