File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ describe('c0d3 submit', () => {
1919 title : 'Foundations of JavaScript' ,
2020 challenges : [
2121 {
22- id : ' 110' ,
22+ id : 110 ,
2323 title : 'Is Sum > 10' ,
2424 order : 7 ,
2525 } ,
@@ -38,8 +38,8 @@ describe('c0d3 submit', () => {
3838 display : 'fakeDiff' ,
3939 } )
4040 askForChallenges . mockResolvedValue ( {
41- lessonId : 'fakeLessonID' ,
42- challengeId : 'fakeChallengeId' ,
41+ lessonId : 666 ,
42+ challengeId : 666 ,
4343 } )
4444 expect ( await submit ( args ) ) . toBe ( undefined )
4545 } )
@@ -59,8 +59,8 @@ describe('c0d3 submit', () => {
5959 const params = [
6060 args . url ,
6161 {
62- lessonId : 'fakeLessonID' ,
63- challengeId : 'fakeChallengeId' ,
62+ lessonId : 666 ,
63+ challengeId : 666 ,
6464 cliToken : DEBUG_TOKEN ,
6565 diff : 'fakeDiff' ,
6666 } ,
@@ -71,8 +71,8 @@ describe('c0d3 submit', () => {
7171 } )
7272 getLessons . mockResolvedValueOnce ( { lessons } ) . mockResolvedValueOnce ( )
7373 askForChallenges . mockResolvedValue ( {
74- lessonId : 'fakeLessonID' ,
75- challengeId : 'fakeChallengeId' ,
74+ lessonId : 666 ,
75+ challengeId : 666 ,
7676 } )
7777
7878 const res = await submit ( args )
Original file line number Diff line number Diff line change @@ -76,17 +76,17 @@ describe('getOptionDisplayStr', () => {
7676describe ( 'askForChallenges' , ( ) => {
7777 const lessons = [
7878 {
79- id : '5' ,
79+ id : 5 ,
8080 title : 'Foundations of JavaScript' ,
8181 order : 0 ,
8282 challenges : [
8383 {
84- id : ' 110' ,
84+ id : 110 ,
8585 title : 'Is Sum > 10' ,
8686 order : 7
8787 } ,
8888 {
89- id : ' 104' ,
89+ id : 104 ,
9090 title : 'Functional Sums' ,
9191 order : 10
9292 }
@@ -100,7 +100,7 @@ describe('askForChallenges', () => {
100100 . mockResolvedValueOnce ( { challengeOrder : '10' } )
101101 expect ( askForChallenges ( lessons ) ) . resolves . toEqual ( {
102102 challengeId : 104 ,
103- lessonId : '5'
103+ lessonId : 5
104104 } )
105105 } )
106106
You can’t perform that action at this time.
0 commit comments