Skip to content

Commit

Permalink
fix(lib): unstable Timepicker spec (#106)
Browse files Browse the repository at this point in the history
- Fixes the issue that the spec for `Timepicker` fails depending on the
  host environment. Fixes the locale, and hour format so that test
  results do not depend on the locale of the host machine.
  • Loading branch information
kikuomax authored Sep 18, 2023
1 parent 7c62a79 commit 7f66182
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/timepicker/Timepicker.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ let wrapper
describe('BTimepicker', () => {
beforeEach(() => {
wrapper = shallowMount(BTimepicker, {
props: {
// fixes the locale, and hour format to avoid flaky tests
locale: 'en-US',
hourFormat: '24'
},
global: {
stubs: {
// these components must not be stubs
Expand Down

0 comments on commit 7f66182

Please sign in to comment.