Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/helpers/dom_shims/image_element_properties.js')
-rw-r--r--spec/frontend/helpers/dom_shims/image_element_properties.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/frontend/helpers/dom_shims/image_element_properties.js b/spec/frontend/helpers/dom_shims/image_element_properties.js
index 525246e6ade..d94c157e44d 100644
--- a/spec/frontend/helpers/dom_shims/image_element_properties.js
+++ b/spec/frontend/helpers/dom_shims/image_element_properties.js
@@ -1,6 +1,6 @@
Object.defineProperty(global.HTMLImageElement.prototype, 'src', {
get() {
- return this.$_jest_src;
+ return this.$_jest_src || this.getAttribute('src');
},
set(val) {
this.$_jest_src = val;