1 | var desribeFunction = require('..');
|
2 | var fooFilename = __dirname + '/foo.js';
|
3 |
|
4 | desribeFunction(fooFilename, 'getFoo()', function (getFn) {
|
5 | console.assert(this !== global, 'this is global in describe callback');
|
6 |
|
7 | beforeEach(function () {
|
8 | console.assert(this !== global, 'this is global in beforeEach');
|
9 | });
|
10 |
|
11 | it('preserves context in spec', function () {
|
12 | console.assert(this !== global, 'this is global in spec');
|
13 | });
|
14 | });
|