Make spyOnProperty available in tests
Needed adding to the env and require interface
This commit is contained in:
committed by
Joe Cellucci
parent
56191cfb2e
commit
8e23c26383
@@ -293,6 +293,10 @@ getJasmineRequireObj().Env = function(j$) {
|
||||
return spyRegistry.spyOn.apply(spyRegistry, arguments);
|
||||
};
|
||||
|
||||
this.spyOnProperty = function() {
|
||||
return spyRegistry.spyOnProperty.apply(spyRegistry, arguments);
|
||||
};
|
||||
|
||||
var suiteFactory = function(description) {
|
||||
var suite = new j$.Suite({
|
||||
env: self,
|
||||
|
||||
@@ -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()
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user