-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update: Switch to mocha/expect for testing
- Loading branch information
Showing
4 changed files
with
24 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,17 @@ | ||
'use strict'; | ||
|
||
var lab = exports.lab = require('lab').script(); | ||
var describe = lab.describe; | ||
var it = lab.it; | ||
var expect = require('code').expect; | ||
var expect = require('expect'); | ||
|
||
var sparkles = require('../'); | ||
|
||
describe('sparkles.exists()', function(){ | ||
|
||
it('checks if a namespace has been defined', function(done){ | ||
expect(sparkles.exists('test')).to.be.false(); | ||
expect(sparkles.exists('test')).toBe(false); | ||
var ee = sparkles('test'); | ||
expect(sparkles.exists('test')).to.be.true(); | ||
expect(sparkles.exists('test')).toBe(true); | ||
ee.remove(); | ||
expect(sparkles.exists('test')).to.be.false(); | ||
expect(sparkles.exists('test')).toBe(false); | ||
done(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters