const alert = new Alert(div)
expect(Alert.getInstance(div)).toEqual(alert)
- expect(Alert.getInstance(div) instanceof Alert).toEqual(true)
+ expect(Alert.getInstance(div)).toBeInstanceOf(Alert)
})
it('should return null when there is no alert instance', () => {
const button = new Button(div)
expect(Button.getInstance(div)).toEqual(button)
- expect(Button.getInstance(div) instanceof Button).toEqual(true)
+ expect(Button.getInstance(div)).toBeInstanceOf(Button)
})
it('should return null when there is no button instance', () => {
const carousel = new Carousel(div)
expect(Carousel.getInstance(div)).toEqual(carousel)
- expect(Carousel.getInstance(div) instanceof Carousel).toEqual(true)
+ expect(Carousel.getInstance(div)).toBeInstanceOf(Carousel)
})
it('should return null when there is no carousel instance', () => {
const collapse = new Collapse(div)
expect(Collapse.getInstance(div)).toEqual(collapse)
- expect(Collapse.getInstance(div) instanceof Collapse).toEqual(true)
+ expect(Collapse.getInstance(div)).toBeInstanceOf(Collapse)
})
it('should return null when there is no collapse instance', () => {
const dropdown = new Dropdown(div)
expect(Dropdown.getInstance(div)).toEqual(dropdown)
- expect(Dropdown.getInstance(div) instanceof Dropdown).toEqual(true)
+ expect(Dropdown.getInstance(div)).toBeInstanceOf(Dropdown)
})
it('should return null when there is no dropdown instance', () => {
const modal = new Modal(div)
expect(Modal.getInstance(div)).toEqual(modal)
- expect(Modal.getInstance(div) instanceof Modal).toEqual(true)
+ expect(Modal.getInstance(div)).toBeInstanceOf(Modal)
})
it('should return null when there is no modal instance', () => {
const popover = new Popover(popoverEl)
expect(Popover.getInstance(popoverEl)).toEqual(popover)
- expect(Popover.getInstance(popoverEl) instanceof Popover).toEqual(true)
+ expect(Popover.getInstance(popoverEl)).toBeInstanceOf(Popover)
})
it('should return null when there is no popover instance', () => {
const scrollSpy = new ScrollSpy(div)
expect(ScrollSpy.getInstance(div)).toEqual(scrollSpy)
- expect(ScrollSpy.getInstance(div) instanceof ScrollSpy).toEqual(true)
+ expect(ScrollSpy.getInstance(div)).toBeInstanceOf(ScrollSpy)
})
it('should return null if there is no instance', () => {
const tab = new Tab(divEl)
expect(Tab.getInstance(divEl)).toEqual(tab)
- expect(Tab.getInstance(divEl) instanceof Tab).toEqual(true)
+ expect(Tab.getInstance(divEl)).toBeInstanceOf(Tab)
})
})
const toast = new Toast(div)
expect(Toast.getInstance(div)).toEqual(toast)
- expect(Toast.getInstance(div) instanceof Toast).toEqual(true)
+ expect(Toast.getInstance(div)).toBeInstanceOf(Toast)
})
it('should return null when there is no toast instance', () => {
const alert = new Tooltip(div)
expect(Tooltip.getInstance(div)).toEqual(alert)
- expect(Tooltip.getInstance(div) instanceof Tooltip).toEqual(true)
+ expect(Tooltip.getInstance(div)).toBeInstanceOf(Tooltip)
})
it('should return null when there is no tooltip instance', () => {