feat(getSpecProperty) get a user-defined property

This commit is contained in:
kbon
2025-08-25 23:00:06 -04:00
parent db65c3b131
commit f822ffea21
5 changed files with 102 additions and 2 deletions
+5
View File
@@ -63,6 +63,11 @@ getJasmineRequireObj().Spec = function(j$) {
}
};
Spec.prototype.getSpecProperty = function(key) {
this.result.properties = this.result.properties || {};
return this.result.properties[key];
};
Spec.prototype.setSpecProperty = function(key, value) {
this.result.properties = this.result.properties || {};
this.result.properties[key] = value;