diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-08 21:08:27 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-08 21:08:27 +0300 |
commit | 99c01aa6867b91b8d2279eb8d32794ea90d5dcdc (patch) | |
tree | ae36b06dd962230381080d9e2a31385cea5f8609 /spec/frontend/helpers | |
parent | 5693fb6ba7d21ba7b79775543a3f195eb989664b (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/helpers')
-rw-r--r-- | spec/frontend/helpers/dom_shims/image_element_properties.js | 2 |
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; |