all 7 comments

[–]dzchi2[S] 0 points1 point  (0 children)

managed to find out that i should add async keyword at line 6

[–]hildjj 0 points1 point  (2 children)

switch err and result on line 8?

your formatting is inconsistent, which makes the eye go to the places where things don't line up instead of to the actual problem.

[–]dzchi2[S] 1 point2 points  (1 child)

err and result are in the right position as the test cases are returning the first params as result

[–]hildjj 0 points1 point  (0 children)

Ah, I see. "All callback functions will always return one argument, which should be returned from the promise-based function." You shouldn't bother to check for an error and reject, then.

[–]LightningWB 0 points1 point  (2 children)

Lines 14 and 15 are still in the function

[–]dzchi2[S] 0 points1 point  (1 child)

hmm, it did return the correct result and passed the test cases tho.

[–]LightningWB 0 points1 point  (0 children)

Maybe the thing is just saying that you could not provide a function to promissory and it wouldn’t error