diff options
Diffstat (limited to 'tools/node_modules/expresso/test/this.test.js')
-rw-r--r-- | tools/node_modules/expresso/test/this.test.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tools/node_modules/expresso/test/this.test.js b/tools/node_modules/expresso/test/this.test.js new file mode 100644 index 0000000..17b794b --- /dev/null +++ b/tools/node_modules/expresso/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); + }); + } +};
\ No newline at end of file |