michael@0: let testVar; michael@0: michael@0: registerCleanupFunction(function() { michael@0: ok(true, "I'm a cleanup function in test file"); michael@0: is(this.testVar, "I'm a var in test file", "Test cleanup function scope is correct"); michael@0: }); michael@0: michael@0: function test() { michael@0: is(headVar, "I'm a var in head file", "Head variables are set"); michael@0: ok(headMethod(), "Head methods are imported"); michael@0: testVar = "I'm a var in test file"; michael@0: }