nodeJS

mocha]Resolution method is overspecified. Specify a callback *or* return a Promise; not both.

amugae 2020. 1. 16. 02:07

errorMessage
Resolution method is overspecified. Specify a callback or return a Promise; not both.

it('test method', async done =>
   request(app).get('/version')
       .expect(200, done)
  )```

'done' is used for async test;
but must not be use with async