Closed maggieneterval closed 8 years ago
...and add admin authentication to the order and user put/post/delete routes. All product put/post/delete routes check for admin status, but then they fail their unit tests since the supertest agent is not an admin.
Post to login beforeEach!!
...and add admin authentication to the order and user put/post/delete routes. All product put/post/delete routes check for admin status, but then they fail their unit tests since the supertest agent is not an admin.