Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/tests/unit/alert.spec.js2
-rw-r--r--js/tests/unit/button.spec.js2
-rw-r--r--js/tests/unit/carousel.spec.js2
-rw-r--r--js/tests/unit/collapse.spec.js2
-rw-r--r--js/tests/unit/dropdown.spec.js2
-rw-r--r--js/tests/unit/modal.spec.js2
-rw-r--r--js/tests/unit/popover.spec.js2
-rw-r--r--js/tests/unit/scrollspy.spec.js2
-rw-r--r--js/tests/unit/tab.spec.js2
-rw-r--r--js/tests/unit/toast.spec.js2
-rw-r--r--js/tests/unit/tooltip.spec.js2
11 files changed, 11 insertions, 11 deletions
diff --git a/js/tests/unit/alert.spec.js b/js/tests/unit/alert.spec.js
index 52643e575d..a1322f1c7b 100644
--- a/js/tests/unit/alert.spec.js
+++ b/js/tests/unit/alert.spec.js
@@ -179,7 +179,7 @@ describe('Alert', () => {
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', () => {
diff --git a/js/tests/unit/button.spec.js b/js/tests/unit/button.spec.js
index e7f6566ea3..51aa73774c 100644
--- a/js/tests/unit/button.spec.js
+++ b/js/tests/unit/button.spec.js
@@ -137,7 +137,7 @@ describe('Button', () => {
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', () => {
diff --git a/js/tests/unit/carousel.spec.js b/js/tests/unit/carousel.spec.js
index a21003dc5e..07b8fc311d 100644
--- a/js/tests/unit/carousel.spec.js
+++ b/js/tests/unit/carousel.spec.js
@@ -1070,7 +1070,7 @@ describe('Carousel', () => {
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', () => {
diff --git a/js/tests/unit/collapse.spec.js b/js/tests/unit/collapse.spec.js
index e5c8c53b5b..d53ab59643 100644
--- a/js/tests/unit/collapse.spec.js
+++ b/js/tests/unit/collapse.spec.js
@@ -812,7 +812,7 @@ describe('Collapse', () => {
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', () => {
diff --git a/js/tests/unit/dropdown.spec.js b/js/tests/unit/dropdown.spec.js
index 96f677c02c..145763d20f 100644
--- a/js/tests/unit/dropdown.spec.js
+++ b/js/tests/unit/dropdown.spec.js
@@ -1612,7 +1612,7 @@ describe('Dropdown', () => {
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', () => {
diff --git a/js/tests/unit/modal.spec.js b/js/tests/unit/modal.spec.js
index 8e8d4f0ff6..f645e9892b 100644
--- a/js/tests/unit/modal.spec.js
+++ b/js/tests/unit/modal.spec.js
@@ -1108,7 +1108,7 @@ describe('Modal', () => {
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', () => {
diff --git a/js/tests/unit/popover.spec.js b/js/tests/unit/popover.spec.js
index 3a8342a80f..3c04e7ac14 100644
--- a/js/tests/unit/popover.spec.js
+++ b/js/tests/unit/popover.spec.js
@@ -253,7 +253,7 @@ describe('Popover', () => {
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', () => {
diff --git a/js/tests/unit/scrollspy.spec.js b/js/tests/unit/scrollspy.spec.js
index 303a336f44..45de56fbe5 100644
--- a/js/tests/unit/scrollspy.spec.js
+++ b/js/tests/unit/scrollspy.spec.js
@@ -641,7 +641,7 @@ describe('ScrollSpy', () => {
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', () => {
diff --git a/js/tests/unit/tab.spec.js b/js/tests/unit/tab.spec.js
index 7112dda181..67a85b2e40 100644
--- a/js/tests/unit/tab.spec.js
+++ b/js/tests/unit/tab.spec.js
@@ -417,7 +417,7 @@ describe('Tab', () => {
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)
})
})
diff --git a/js/tests/unit/toast.spec.js b/js/tests/unit/toast.spec.js
index 60c7d9177b..a4ab4f76cd 100644
--- a/js/tests/unit/toast.spec.js
+++ b/js/tests/unit/toast.spec.js
@@ -384,7 +384,7 @@ describe('Toast', () => {
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', () => {
diff --git a/js/tests/unit/tooltip.spec.js b/js/tests/unit/tooltip.spec.js
index 36316b42f9..e8572b3001 100644
--- a/js/tests/unit/tooltip.spec.js
+++ b/js/tests/unit/tooltip.spec.js
@@ -1038,7 +1038,7 @@ describe('Tooltip', () => {
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', () => {