georgiakirkpatrick / veronaut-products-api

Fashion sustainability research, but make it shopping.
0 stars 0 forks source link

Solve date problem in tests #2

Open georgiakirkpatrick opened 3 years ago

georgiakirkpatrick commented 3 years ago

1) Fabrics Endpoints POST /api/fabrics creates a fabric, responding with 201 and the new fabric:

  AssertionError: expected '7/27/2021, 5:47:30 PM' to deeply equal '7/27/2021, 5:47:31 PM'
  + expected - actual

  -7/27/2021, 5:47:30 PM
  +7/27/2021, 5:47:31 PM

  at /Users/Georgia/projects/veronaut-products-api/test/fabrics-endpoints.spec.js:456:39
  at Test._assertFunction (node_modules/supertest/lib/test.js:283:11)
  at Test.assert (node_modules/supertest/lib/test.js:173:18)
  at Server.localAssert (node_modules/supertest/lib/test.js:131:12)
  at emitCloseNT (net.js:1655:8)
  at processTicksAndRejections (internal/process/task_queues.js:83:21)