If the object submitted to /api/solve is missing puzzle, the returned value will be { error: 'Required field missing' }
and
If the object submitted to /api/check is missing puzzle, coordinate or value, the returned value will be { error: Required field(s) missing }
…which is weird because when I pass a missing puzzle the API always return as expected an object {error: Required field(s) missing}. The FreeCodeCamp tester algorithm is not checking those two tests correctly. Even my Chai assertion tests passed the MISSING puzzle correctly. What seems to be the problem here? Is my code wrong? My code for API folder is here : https://repl.it/@synerjay/boilerplate-project-sudoku-solver#routes/api.js Your project link(s)
I changed condition statement to undefined and it did the trick. I misunderstood “missing” as “empty”. Working on the American-British translator gave me that “eureka” moment