Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update photos #136

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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