]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
tests: add Offcanvas too in jquery.spec.js (#34841)
authorXhmikosR <xhmikosr@gmail.com>
Mon, 30 Aug 2021 15:57:00 +0000 (18:57 +0300)
committerGitHub <noreply@github.com>
Mon, 30 Aug 2021 15:57:00 +0000 (18:57 +0300)
js/tests/unit/jquery.spec.js

index 289612df50ce8655b8008052fc7ce55c65b725f8..7513341a43688871278f3aebd4a345acb41dce4d 100644 (file)
@@ -5,6 +5,7 @@ import Carousel from '../../src/carousel'
 import Collapse from '../../src/collapse'
 import Dropdown from '../../src/dropdown'
 import Modal from '../../src/modal'
+import Offcanvas from '../../src/offcanvas'
 import Popover from '../../src/popover'
 import ScrollSpy from '../../src/scrollspy'
 import Tab from '../../src/tab'
@@ -32,6 +33,7 @@ describe('jQuery', () => {
     expect(Collapse.jQueryInterface).toEqual(jQuery.fn.collapse)
     expect(Dropdown.jQueryInterface).toEqual(jQuery.fn.dropdown)
     expect(Modal.jQueryInterface).toEqual(jQuery.fn.modal)
+    expect(Offcanvas.jQueryInterface).toEqual(jQuery.fn.offcanvas)
     expect(Popover.jQueryInterface).toEqual(jQuery.fn.popover)
     expect(ScrollSpy.jQueryInterface).toEqual(jQuery.fn.scrollspy)
     expect(Tab.jQueryInterface).toEqual(jQuery.fn.tab)