Let's use the supertest package to help us write our tests for testing the API. ... await api .delete(`/api/notes/${noteToDelete.id}`) .expect(204) const ...
確定! 回上一頁