UNPKG

438 BJavaScriptView Raw
1var desribeFunction = require('..');
2var fooFilename = __dirname + '/foo.js';
3
4desribeFunction(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});