diff options
author | Johann-S <johann.servoire@gmail.com> | 2020-03-25 17:35:02 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-25 17:35:02 +0300 |
commit | 26d86fce2a10f5c9e295b0acf5e6381ff21368b4 (patch) | |
tree | 63ed06cb159ad7b625aa6b4c8d7460a1a269db43 /js/tests/unit/modal.spec.js | |
parent | 98c45986962f8ab16bc630722e96dbfb048079b3 (diff) |
fix: remove make array util function (#30430)
Diffstat (limited to 'js/tests/unit/modal.spec.js')
-rw-r--r-- | js/tests/unit/modal.spec.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/js/tests/unit/modal.spec.js b/js/tests/unit/modal.spec.js index 62d0835ee9..c5fbc3a273 100644 --- a/js/tests/unit/modal.spec.js +++ b/js/tests/unit/modal.spec.js @@ -1,6 +1,5 @@ import Modal from '../../src/modal' import EventHandler from '../../src/dom/event-handler' -import { makeArray } from '../../src/util/index' /** Test helpers */ import { getFixture, clearFixture, createEvent, jQueryMock } from '../helpers/fixture' @@ -31,11 +30,11 @@ describe('Modal', () => { document.body.classList.remove('modal-open') document.body.removeAttribute('style') document.body.removeAttribute('data-padding-right') - const backdropList = makeArray(document.querySelectorAll('.modal-backdrop')) - backdropList.forEach(backdrop => { - document.body.removeChild(backdrop) - }) + document.querySelectorAll('.modal-backdrop') + .forEach(backdrop => { + document.body.removeChild(backdrop) + }) document.body.style.paddingRight = '0px' }) |