Skip to content

Commit

Permalink
updates test
Browse files Browse the repository at this point in the history
  • Loading branch information
capetillo committed Nov 21, 2024
1 parent 66e437a commit 4b08b7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/Scheduling/BeginnerScheduling.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const nextStep = () => {
const previousStep = () => {
loading.value = false
// Prevents `Submit my request` button from showing when going back
emits('showButton', false)
if (currentStep.value > 1) currentStep.value -= 1
// Handles specific cases for going back: when user goes from a selected target to seeing the 3 targets
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ describe('BeginnerScheduling.vue', () => {
}
await wrapper.vm.handleDateRangeUpdate(newDateRange)

expect(fetchApiCall).toHaveBeenCalledTimes(1)
expect(fetchApiCall).toHaveBeenCalled()
expect(fetchApiCall).toHaveBeenCalledWith({
url: `https://whatsup.lco.global/range/?start=${newDateRange.start.toISOString().split('.')[0]}&end=${newDateRange.end.toISOString().split('.')[0]}&aperture=0m4&mode=full`,
method: 'GET',
Expand Down

0 comments on commit 4b08b7f

Please sign in to comment.