testing-javascript-applications
testing-javascript-applications copied to clipboard
Missing async/await in addItem since add fetch
There are missing async/await in addItem since add fetch to this function. Thus missing async/await in handleAddItem function. and missing async/await logical in three test file. After changing tests in main.test.js to async function, there are also need to add await logic in the test, otherwise the test will fail.