Skip to content

Commit

Permalink
fixed some JavaScript tests
Browse files Browse the repository at this point in the history
Co-authored-by: Shaun Ellis <sdellis@users.noreply.github.com>
  • Loading branch information
Seanwarren77 and sdellis committed Dec 11, 2024
1 parent b3e1321 commit 4adfaae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/javascript/components/RequestCart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
</td>
</tr>

<tr v-else="item.location && item.location.label" class="request__location">
<tr v-else-if="item.location && item.location.label" class="request__location">
<td colspan="4">
<geo-icon></geo-icon>
View this item at the <template v-if="item.location.url"><a
Expand Down
2 changes: 1 addition & 1 deletion app/javascript/test/addToCartButton.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ describe('AddToCartButton.vue', () => {
})
const button = getByRole('button')
await fireEvent.click(button)
expect(addItemToCart).toHaveBeenCalledWith(expect.anything(), { accessRestrict: '', callnumber: 'AC101', containers: '', formParams: undefined, title: 'Title' })
expect(addItemToCart).toHaveBeenCalledWith(expect.anything(), { restricted: false, callnumber: 'AC101', containers: '', formParams: undefined, title: 'Title' })
})
})

0 comments on commit 4adfaae

Please sign in to comment.