Skip to content

Commit

Permalink
Merge pull request #136 from apollographql/lh/update-photos
Browse files Browse the repository at this point in the history
update photos
  • Loading branch information
lizhennessy authored Nov 22, 2024
2 parents 4f35798 + de317c9 commit c7ff8dd
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 14 deletions.
6 changes: 4 additions & 2 deletions client/src/components/__tests__/module-detail.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const mockParentTrack = {
title: 'Cat-stronomy, an introduction',
description: '# Pulchra vehi vidit misera sola armenta secabatur\n\n',
thumbnail:
'https://res.cloudinary.com/dety84pbu/image/upload/v1598465568/nebula_cat_djkt9r.jpg',
'https://res.cloudinary.com/apollographql/image/upload/v1730818804/odyssey/lift-off-api/nebula_cat_djkt9r_nzifdj.jpg',
trackLength: 2377,
modulesCount: 10,
numberOfViews: 51,
Expand All @@ -41,6 +41,8 @@ describe('Module Detail View', () => {
afterEach(cleanup);

it('renders without error', () => {
renderWithRouter(<ModuleDetail module={mockModule} track={mockParentTrack} />);
renderWithRouter(
<ModuleDetail module={mockModule} track={mockParentTrack} />
);
});
});
2 changes: 1 addition & 1 deletion client/src/components/__tests__/modules-navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const mockParentTrack = {
title: 'Cat-stronomy, an introduction',
description: '# Pulchra vehi vidit misera sola armenta secabatur\n\n',
thumbnail:
'https://res.cloudinary.com/dety84pbu/image/upload/v1598465568/nebula_cat_djkt9r.jpg',
'https://res.cloudinary.com/apollographql/image/upload/v1730818804/odyssey/lift-off-api/nebula_cat_djkt9r_nzifdj.jpg',
trackLength: 2377,
modulesCount: 10,
numberOfViews: 51,
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/__tests__/track-detail.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const mockTrack = {
title: 'Cat-stronomy, an introduction',
description: '# Pulchra vehi vidit misera sola armenta secabatur\n\n',
thumbnail:
'https://res.cloudinary.com/dety84pbu/image/upload/v1598465568/nebula_cat_djkt9r.jpg',
'https://res.cloudinary.com/apollographql/image/upload/v1730818804/odyssey/lift-off-api/nebula_cat_djkt9r_nzifdj.jpg',
length: 2377,
modulesCount: 10,
numberOfViews: 51,
Expand Down
8 changes: 6 additions & 2 deletions client/src/containers/__tests__/track-card.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
import React from 'react';
import { renderApolloWithRouter, cleanup, waitForElement } from '../../utils/test-utils';
import {
renderApolloWithRouter,
cleanup,
waitForElement,
} from '../../utils/test-utils';
import TrackCard from '../track-card';

const mockTrackCardData = {
id: 'c_0',
title: 'Cat-stronomy, an introduction',
thumbnail:
'https://res.cloudinary.com/dety84pbu/image/upload/v1598465568/nebula_cat_djkt9r.jpg',
'https://res.cloudinary.com/apollographql/image/upload/v1730818804/odyssey/lift-off-api/nebula_cat_djkt9r_nzifdj.jpg',
length: 2377,
author: {
name: 'Henri, le Chat Noir',
Expand Down
6 changes: 4 additions & 2 deletions final/client/src/components/__tests__/module-detail.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const mockParentTrack = {
title: 'Cat-stronomy, an introduction',
description: '# Pulchra vehi vidit misera sola armenta secabatur\n\n',
thumbnail:
'https://res.cloudinary.com/dety84pbu/image/upload/v1598465568/nebula_cat_djkt9r.jpg',
'https://res.cloudinary.com/apollographql/image/upload/v1730818804/odyssey/lift-off-api/nebula_cat_djkt9r_nzifdj.jpg',
trackLength: 2377,
modulesCount: 10,
numberOfViews: 51,
Expand All @@ -41,6 +41,8 @@ describe('Module Detail View', () => {
afterEach(cleanup);

it('renders without error', () => {
renderWithRouter(<ModuleDetail module={mockModule} track={mockParentTrack} />);
renderWithRouter(
<ModuleDetail module={mockModule} track={mockParentTrack} />
);
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const mockParentTrack = {
title: 'Cat-stronomy, an introduction',
description: '# Pulchra vehi vidit misera sola armenta secabatur\n\n',
thumbnail:
'https://res.cloudinary.com/dety84pbu/image/upload/v1598465568/nebula_cat_djkt9r.jpg',
'https://res.cloudinary.com/apollographql/image/upload/v1730818804/odyssey/lift-off-api/nebula_cat_djkt9r_nzifdj.jpg',
trackLength: 2377,
modulesCount: 10,
numberOfViews: 51,
Expand Down
2 changes: 1 addition & 1 deletion final/client/src/components/__tests__/track-detail.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const mockTrack = {
title: 'Cat-stronomy, an introduction',
description: '# Pulchra vehi vidit misera sola armenta secabatur\n\n',
thumbnail:
'https://res.cloudinary.com/dety84pbu/image/upload/v1598465568/nebula_cat_djkt9r.jpg',
'https://res.cloudinary.com/apollographql/image/upload/v1730818804/odyssey/lift-off-api/nebula_cat_djkt9r_nzifdj.jpg',
length: 2377,
modulesCount: 10,
numberOfViews: 51,
Expand Down
8 changes: 6 additions & 2 deletions final/client/src/containers/__tests__/track-card.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
import React from 'react';
import { renderApolloWithRouter, cleanup, waitForElement } from '../../utils/test-utils';
import {
renderApolloWithRouter,
cleanup,
waitForElement,
} from '../../utils/test-utils';
import TrackCard from '../track-card';

const mockTrackCardData = {
id: 'c_0',
title: 'Cat-stronomy, an introduction',
thumbnail:
'https://res.cloudinary.com/dety84pbu/image/upload/v1598465568/nebula_cat_djkt9r.jpg',
'https://res.cloudinary.com/apollographql/image/upload/v1730818804/odyssey/lift-off-api/nebula_cat_djkt9r_nzifdj.jpg',
length: 2377,
author: {
name: 'Henri, le Chat Noir',
Expand Down
6 changes: 4 additions & 2 deletions final/server/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@ const mocks = {
author: () => {
return {
name: 'Grumpy Cat',
photo: 'https://res.cloudinary.com/dety84pbu/image/upload/v1606816219/kitty-veyron-sm_mctf3c.jpg',
photo:
'https://res.cloudinary.com/dety84pbu/image/upload/v1606816219/kitty-veyron-sm_mctf3c.jpg',
};
},
thumbnail: () => 'https://res.cloudinary.com/dety84pbu/image/upload/v1598465568/nebula_cat_djkt9r.jpg',
thumbnail: () =>
'https://res.cloudinary.com/apollographql/image/upload/v1730818804/odyssey/lift-off-api/nebula_cat_djkt9r_nzifdj.jpg',
length: () => 1210,
modulesCount: () => 6,
}),
Expand Down

0 comments on commit c7ff8dd

Please sign in to comment.