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

WIP(1): Add links for easy access to challenges and submissions #3034

Merged
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
9 changes: 6 additions & 3 deletions __dummy__/getPreviousSubmissionsData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ const dummyPreviousSubmissionsData: GetPreviousSubmissionsQuery = {
__typename: 'Challenge',
title: 'Functional 3 Sum',
description:
'Write a function that takes in 2 numbers, return a function that takes in a number that returns the sum of all 3 numbers when called. Example: const a = solution(1,2); // a is a function // a(1) returns 4 because 1+2+1 // a(5) returns 8 because 1 + 2 + 5 // a(2) returns 5 because 1 + 2 + 2'
'Write a function that takes in 2 numbers, return a function that takes in a number that returns the sum of all 3 numbers when called. Example: const a = solution(1,2); // a is a function // a(1) returns 4 because 1+2+1 // a(5) returns 8 because 1 + 2 + 5 // a(2) returns 5 because 1 + 2 + 2',
id: 1
},
challengeId: 9,
lessonId: 1,
Expand All @@ -39,7 +40,8 @@ const dummyPreviousSubmissionsData: GetPreviousSubmissionsQuery = {
__typename: 'Challenge',
title: 'Functional 3 Sum',
description:
'Write a function that takes in 2 numbers, return a function that takes in a number that returns the sum of all 3 numbers when called. Example: const a = solution(1,2); // a is a function // a(1) returns 4 because 1+2+1 // a(5) returns 8 because 1 + 2 + 5 // a(2) returns 5 because 1 + 2 + 2'
'Write a function that takes in 2 numbers, return a function that takes in a number that returns the sum of all 3 numbers when called. Example: const a = solution(1,2); // a is a function // a(1) returns 4 because 1+2+1 // a(5) returns 8 because 1 + 2 + 5 // a(2) returns 5 because 1 + 2 + 2',
id: 1
},
challengeId: 9,
lessonId: 1,
Expand All @@ -63,7 +65,8 @@ const dummyPreviousSubmissionsData: GetPreviousSubmissionsQuery = {
__typename: 'Challenge',
title: 'Functional 3 Sum',
description:
'Write a function that takes in 2 numbers, return a function that takes in a number that returns the sum of all 3 numbers when called. Example: const a = solution(1,2); // a is a function // a(1) returns 4 because 1+2+1 // a(5) returns 8 because 1 + 2 + 5 // a(2) returns 5 because 1 + 2 + 2'
'Write a function that takes in 2 numbers, return a function that takes in a number that returns the sum of all 3 numbers when called. Example: const a = solution(1,2); // a is a function // a(1) returns 4 because 1+2+1 // a(5) returns 8 because 1 + 2 + 5 // a(2) returns 5 because 1 + 2 + 2',
id: 1
},
challengeId: 9,
lessonId: 1,
Expand Down
3 changes: 2 additions & 1 deletion __dummy__/submission.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ const submissionData = {
title: 'Is First Num Bigger',
description:
"Write a function that takes in 2 numbers and returns true if the first number is greater than the second, false otherwise.\n\nHere's how another developer might use your function:\n\n```\nsolution(5,9) // Should return false\nsolution(4,1) // Should return true\n```",
__typename: 'Challenge'
__typename: 'Challenge',
id: 1
},
challengeId: 6,
lessonId: 1,
Expand Down
3 changes: 2 additions & 1 deletion __tests__/pages/review/[lesson].test.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ const getSubmissionsMock = {
title: 'Sum of 2 Numbers',
description:
"Write a function that takes in 2 numbers and returns their sum. Here's how another developer might use your function: solution(5,9) // Should return 14 solution(4,1) // Should return 5",
__typename: 'Challenge'
__typename: 'Challenge',
id: 2
},
challengeId: 107,
lessonId: 5,
Expand Down
Loading