Issue tracker Valid _id

error with last test

logs:

      1) Valid _id

  10 passing (384ms)

  1 failing

  1) Functional Tests

       DELETE /api/issues/{project} => text

         Valid _id:

      issue not deleted

      + expected - actual

      -no id

      +deleted

      

at 

:18

      at Test.Request.callback (/rbd/pnpm-volume/8b2ff642-872c-41b1-babb-2d5f2bf5f375/node_modules/.registry.npmjs.org/superagent/3.8.3/node_modules/superagent/lib/node/index.js:716:12)

      at IncomingMessage.parser (/rbd/pnpm-volume/8b2ff642-872c-41b1-babb-2d5f2bf5f375/node_modules/.registry.npmjs.org/superagent/3.8.3/node_modules/superagent/lib/node/index.js:916:18)

      at endReadableNT (_stream_readable.js:1125:12)

      at process._tickCallback (internal/process/next_tick.js:63:19)
  1. try with .send instead of .query,

  2. again try with a real _id instead of value from the var id
    make sure you do not call done() while typing a real _id in the test, in the last you’ll call done(). because it will happen only once if the test is successful then see the test output in the console immediately

– Just for testing purpose, you can decide later after getting the output from here @Advitya-sharma

1 Like