summaryrefslogtreecommitdiff
path: root/spec/frontend/test_setup.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/test_setup.js')
-rw-r--r--spec/frontend/test_setup.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/frontend/test_setup.js b/spec/frontend/test_setup.js
index b39b7375d80..4636de6b8b6 100644
--- a/spec/frontend/test_setup.js
+++ b/spec/frontend/test_setup.js
@@ -40,6 +40,9 @@ Object.defineProperty(global.Element.prototype, 'innerText', {
get() {
return this.textContent;
},
+ set(value) {
+ this.textContext = value;
+ },
configurable: true, // make it so that it doesn't blow chunks on re-running tests with things like --watch
});