Skip to content

Commit ccf62a4

Browse files
committed
chore(compat): replace toHaveBeenCalledLastWith with relaxed check
* toHaveBeenCalledLastWith is too strict especially when you are running compat Build generating TONS of warnings
1 parent b1f6538 commit ccf62a4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/form-select/form-select-option-group.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ describe('form-select-option-group', () => {
114114
expect($options.at(1).attributes('value')).toBe('2')
115115
expect($options.at(2).attributes('value')).toBe('three')
116116

117-
expect(spyWarn).toHaveBeenLastCalledWith(
117+
expect(spyWarn).toHaveBeenCalledWith(
118118
'[BootstrapVue warn]: BFormSelectOptionGroup - Setting prop "options" to an object is deprecated. Use the array format instead.'
119119
)
120120

src/components/form-select/form-select.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ describe('form-select', () => {
559559
expect($options.at(1).attributes('value')).toBe('2')
560560
expect($options.at(2).attributes('value')).toBe('three')
561561

562-
expect(spyWarn).toHaveBeenLastCalledWith(
562+
expect(spyWarn).toHaveBeenCalledWith(
563563
'[BootstrapVue warn]: BFormSelect - Setting prop "options" to an object is deprecated. Use the array format instead.'
564564
)
565565

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy