diff options
author | XhmikosR <xhmikosr@gmail.com> | 2021-12-09 17:01:29 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-09 17:01:29 +0300 |
commit | 94d4fa3b100352cba4c03b23b229e137d520a13a (patch) | |
tree | e5bdb442dc900b7b3004ccfe228a321296230ab7 /js/tests/unit/util | |
parent | 28a5a72ed56df3cc5efb1d5164376c9c9541e4f0 (diff) |
Fix tests fixture type (#35501)
Previously we were adding an Array instead of a String
Diffstat (limited to 'js/tests/unit/util')
-rw-r--r-- | js/tests/unit/util/index.spec.js | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/js/tests/unit/util/index.spec.js b/js/tests/unit/util/index.spec.js index a9e446c9df..ef6647e921 100644 --- a/js/tests/unit/util/index.spec.js +++ b/js/tests/unit/util/index.spec.js @@ -171,11 +171,10 @@ describe('Util', () => { describe('isElement', () => { it('should detect if the parameter is an element or not and return Boolean', () => { - fixtureEl.innerHTML = - [ - '<div id="foo" class="test"></div>', - '<div id="bar" class="test"></div>' - ].join('') + fixtureEl.innerHTML = [ + '<div id="foo" class="test"></div>', + '<div id="bar" class="test"></div>' + ].join('') const el = fixtureEl.querySelector('#foo') @@ -199,11 +198,10 @@ describe('Util', () => { describe('getElement', () => { it('should try to parse element', () => { - fixtureEl.innerHTML = - [ - '<div id="foo" class="test"></div>', - '<div id="bar" class="test"></div>' - ].join('') + fixtureEl.innerHTML = [ + '<div id="foo" class="test"></div>', + '<div id="bar" class="test"></div>' + ].join('') const el = fixtureEl.querySelector('div') |