From 26d86fce2a10f5c9e295b0acf5e6381ff21368b4 Mon Sep 17 00:00:00 2001 From: Johann-S Date: Wed, 25 Mar 2020 15:35:02 +0100 Subject: fix: remove make array util function (#30430) --- js/tests/unit/util/index.spec.js | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'js/tests/unit/util') 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) -- cgit v1.2.3