diff options
| author | Johann-S <[email protected]> | 2020-03-25 15:35:02 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-03-25 16:35:02 +0200 |
| commit | 26d86fce2a10f5c9e295b0acf5e6381ff21368b4 (patch) | |
| tree | 63ed06cb159ad7b625aa6b4c8d7460a1a269db43 /js/tests/unit/util | |
| parent | 98c45986962f8ab16bc630722e96dbfb048079b3 (diff) | |
| download | bootstrap-26d86fce2a10f5c9e295b0acf5e6381ff21368b4.tar.xz bootstrap-26d86fce2a10f5c9e295b0acf5e6381ff21368b4.zip | |
fix: remove make array util function (#30430)
Diffstat (limited to 'js/tests/unit/util')
| -rw-r--r-- | js/tests/unit/util/index.spec.js | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/js/tests/unit/util/index.spec.js b/js/tests/unit/util/index.spec.js index 57ca1a9c7..541c10baa 100644 --- a/js/tests/unit/util/index.spec.js +++ b/js/tests/unit/util/index.spec.js @@ -244,20 +244,6 @@ describe('Util', () => { }) }) - describe('makeArray', () => { - it('should convert node list to array', () => { - const nodeList = document.querySelectorAll('div') - - expect(Array.isArray(nodeList)).toEqual(false) - expect(Array.isArray(Util.makeArray(nodeList))).toEqual(true) - }) - - it('should return an empty array if the nodeList is undefined', () => { - expect(Util.makeArray(null)).toEqual([]) - expect(Util.makeArray(undefined)).toEqual([]) - }) - }) - describe('isVisible', () => { it('should return false if the element is not defined', () => { expect(Util.isVisible(null)).toEqual(false) |
