Skip to content

Commit

Permalink
test this in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kkaefer committed Sep 22, 2011
1 parent 673fa6a commit 1bc10ad
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions test/this.test.js
@@ -0,0 +1,20 @@
/**
* This.
*/

module.exports = {
'test this': function(beforeExit, assert) {
assert.equal(this.suite, 'this.test.js');
assert.equal(this.title, 'test this');
assert.ok(this.assert);

var exiting = false;
this.on('exit', function() {
exiting = true;
});

beforeExit(function() {
assert.ok(exiting);
})
}
};

0 comments on commit 1bc10ad

Please sign in to comment.