testing-javascript-applications icon indicating copy to clipboard operation
testing-javascript-applications copied to clipboard

Missing async/await in addItem since add fetch

Open akaigyouhou opened this issue 3 years ago • 0 comments

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.

akaigyouhou avatar Jul 26 '22 15:07 akaigyouhou