Make spyOnProperty available in tests

Needed adding to the env and require interface
This commit is contained in:
Henry Blyth
2016-05-16 10:15:36 +01:00
committed by Joe Cellucci
parent 56191cfb2e
commit 8e23c26383
2 changed files with 8 additions and 0 deletions

View File

@@ -56,6 +56,10 @@ getJasmineRequireObj().interface = function(jasmine, env) {
return env.spyOn(obj, methodName);
},
spyOnProperty: function(obj, methodName, accessType) {
return env.spyOnProperty(obj, methodName, accessType);
},
jsApiReporter: new jasmine.JsApiReporter({
timer: new jasmine.Timer()
}),