diff options
Diffstat (limited to 'js/tests/unit/alert.spec.js')
-rw-r--r-- | js/tests/unit/alert.spec.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/js/tests/unit/alert.spec.js b/js/tests/unit/alert.spec.js index 8a3d33dcf8..9372215b65 100644 --- a/js/tests/unit/alert.spec.js +++ b/js/tests/unit/alert.spec.js @@ -1,5 +1,5 @@ import Alert from '../../src/alert' -import { makeArray, getTransitionDurationFromElement } from '../../src/util/index' +import { getTransitionDurationFromElement } from '../../src/util/index' /** Test helpers */ import { getFixture, clearFixture, jQueryMock } from '../helpers/fixture' @@ -30,7 +30,7 @@ describe('Alert', () => { const button = document.querySelector('button') button.click() - expect(makeArray(document.querySelectorAll('.alert')).length).toEqual(0) + expect(document.querySelectorAll('.alert').length).toEqual(0) }) it('should close an alert without instantiating it manually with the parent selector', () => { @@ -43,7 +43,7 @@ describe('Alert', () => { const button = document.querySelector('button') button.click() - expect(makeArray(document.querySelectorAll('.alert')).length).toEqual(0) + expect(document.querySelectorAll('.alert').length).toEqual(0) }) }) @@ -56,7 +56,7 @@ describe('Alert', () => { const alert = new Alert(alertEl) alertEl.addEventListener('closed.bs.alert', () => { - expect(makeArray(document.querySelectorAll('.alert')).length).toEqual(0) + expect(document.querySelectorAll('.alert').length).toEqual(0) expect(spy).not.toHaveBeenCalled() done() }) @@ -75,7 +75,7 @@ describe('Alert', () => { }) alertEl.addEventListener('closed.bs.alert', () => { - expect(makeArray(document.querySelectorAll('.alert')).length).toEqual(0) + expect(document.querySelectorAll('.alert').length).toEqual(0) done() }) |