Skip to content

Commit

Permalink
Merge pull request #69 from LCOGT/test/mygallery-component
Browse files Browse the repository at this point in the history
Test/mygallery component
  • Loading branch information
capetillo authored Sep 6, 2024
2 parents a5be9a5 + 6e874c4 commit 1e31795
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 6 deletions.
54 changes: 49 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"@fortawesome/free-solid-svg-icons": "^6.5.2",
"@fortawesome/pro-regular-svg-icons": "^6.6.0",
"@fortawesome/vue-fontawesome": "^3.0.6",
"@vitejs/plugin-vue": "^5.1.2",
"bulma": "^1.0.0",
"core-js": "^3.8.3",
"d3-celestial": "^0.7.35",
Expand All @@ -35,6 +34,7 @@
"@babel/core": "^7.12.16",
"@babel/eslint-parser": "^7.12.16",
"@testing-library/vue": "^8.1.0",
"@vitejs/plugin-vue": "^5.1.3",
"@vue/cli-plugin-babel": "~5.0.0",
"@vue/cli-plugin-eslint": "~5.0.0",
"@vue/cli-service": "~5.0.0",
Expand Down
1 change: 1 addition & 0 deletions src/tests/integration/components/myGallery.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ describe('MyGallery.vue', () => {

it('fetches thumbnails for each session on mount', async () => {
fetchApiCall.mockImplementation(({ url, successCallback }) => {
console.log('THIS IS URL:', url)
if (url.includes('session1')) {
successCallback({
results: [{ url: 'http://mock-image.com/image1.jpg' }]
Expand Down

0 comments on commit 1e31795

Please sign in to comment.