fix(env): expose setSpec/SuiteProperty on interface
This commit is contained in:
@@ -168,6 +168,30 @@ getJasmineRequireObj().interface = function(jasmine, env) {
|
|||||||
return env.afterAll.apply(env, arguments);
|
return env.afterAll.apply(env, arguments);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets a user-defined property that will be provided to reporters as part of {@link SpecResult#properties}
|
||||||
|
* @name Env#setSpecProperty
|
||||||
|
* @since 3.6.0
|
||||||
|
* @function
|
||||||
|
* @param {String} key The name of the property
|
||||||
|
* @param {*} value The value of the property
|
||||||
|
*/
|
||||||
|
setSpecProperty: function(key, value) {
|
||||||
|
return env.setSpecProperty(key, value);
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets a user-defined property that will be provided to reporters as part of {@link SuiteResult#properties}
|
||||||
|
* @name Env#setSuiteProperty
|
||||||
|
* @since 3.6.0
|
||||||
|
* @function
|
||||||
|
* @param {String} key The name of the property
|
||||||
|
* @param {*} value The value of the property
|
||||||
|
*/
|
||||||
|
setSuiteProperty: function(key, value) {
|
||||||
|
return env.setSuiteProperty(key, value);
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create an expectation for a spec.
|
* Create an expectation for a spec.
|
||||||
* @name expect
|
* @name expect
|
||||||
|
|||||||
Reference in New Issue
Block a user