File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -9,13 +9,13 @@ beforeAll(() => {
99test ( "recommendation engine" , async ( ) => {
1010 const usersFor101 = await recommendedTo ( 101 , 5 , 0 ) ;
1111 if ( ! usersFor101 . ok ) throw new Error ( ) ;
12- expect ( usersFor101 . value . map ( ( entry ) => entry . u . id ) ) . toEqual ( [ 102 , 103 ] ) ;
12+ expect ( usersFor101 . value . map ( ( entry ) => entry . u . id ) ) . toEqual ( [ 102 , 103 , 0 ] ) ;
1313
1414 const usersFor102 = await recommendedTo ( 102 , 5 , 0 ) ;
1515 if ( ! usersFor102 . ok ) throw new Error ( ) ;
16- expect ( usersFor102 . value . map ( ( entry ) => entry . u . id ) ) . toEqual ( [ 103 , 101 ] ) ;
16+ expect ( usersFor102 . value . map ( ( entry ) => entry . u . id ) ) . toEqual ( [ 103 , 101 , 0 ] ) ;
1717
1818 const usersFor103 = await recommendedTo ( 103 , 5 , 0 ) ;
1919 if ( ! usersFor103 . ok ) throw new Error ( ) ;
20- expect ( usersFor103 . value . map ( ( entry ) => entry . u . id ) ) . toEqual ( [ 102 , 101 ] ) ;
20+ expect ( usersFor103 . value . map ( ( entry ) => entry . u . id ) ) . toEqual ( [ 102 , 101 , 0 ] ) ;
2121} ) ;
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ beforeAll(() => {
1414test ( "get all users" , async ( ) => {
1515 const result = await getAllUsers ( ) ;
1616 expect ( result . code ) . toBe ( 200 ) ;
17- expect ( result . body ) . toSatisfy ( ( s ) => s . length === 3 ) ;
17+ expect ( result . body ) . toSatisfy ( ( s ) => s . length === 4 ) ;
1818 expect ( result . body ) . toSatisfy (
1919 ( s ) =>
2020 typeof s !== "string" && s . some ( ( person ) => person . name === "田中太郎" ) ,
You can’t perform that action at this time.
0 commit comments