Content-Length: 300850 | pFad | https://github.com/bootstrap-vue/bootstrap-vue/commit/ccf62a49e875693fba09d9714dc035fe41f49e60

72 chore(compat): replace toHaveBeenCalledLastWith with relaxed check · bootstrap-vue/bootstrap-vue@ccf62a4 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/bootstrap-vue/bootstrap-vue/commit/ccf62a49e875693fba09d9714dc035fe41f49e60

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy