Skip to content

Commit 06becad

Browse files
committed
test: Update submission query dummy data
1 parent 7d6c854 commit 06becad

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

__dummy__/getPreviousSubmissionsData.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ const dummyPreviousSubmissionsData: GetPreviousSubmissionsQuery = {
1515
__typename: 'Challenge',
1616
title: 'Functional 3 Sum',
1717
description:
18-
'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'
18+
'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',
19+
id: 1
1920
},
2021
challengeId: 9,
2122
lessonId: 1,
@@ -39,7 +40,8 @@ const dummyPreviousSubmissionsData: GetPreviousSubmissionsQuery = {
3940
__typename: 'Challenge',
4041
title: 'Functional 3 Sum',
4142
description:
42-
'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'
43+
'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',
44+
id: 1
4345
},
4446
challengeId: 9,
4547
lessonId: 1,
@@ -63,7 +65,8 @@ const dummyPreviousSubmissionsData: GetPreviousSubmissionsQuery = {
6365
__typename: 'Challenge',
6466
title: 'Functional 3 Sum',
6567
description:
66-
'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'
68+
'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',
69+
id: 1
6770
},
6871
challengeId: 9,
6972
lessonId: 1,

__dummy__/submission.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ const submissionData = {
99
title: 'Is First Num Bigger',
1010
description:
1111
"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```",
12-
__typename: 'Challenge'
12+
__typename: 'Challenge',
13+
id: 1
1314
},
1415
challengeId: 6,
1516
lessonId: 1,

__tests__/pages/review/[lesson].test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ const getSubmissionsMock = {
5353
title: 'Sum of 2 Numbers',
5454
description:
5555
"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",
56-
__typename: 'Challenge'
56+
__typename: 'Challenge',
57+
id: 2
5758
},
5859
challengeId: 107,
5960
lessonId: 5,

0 commit comments

Comments
 (0)