How to get Mocha to fail a test

后端 未结 4 549
遇见更好的自我
遇见更好的自我 2021-02-02 07:15

I have the following test:

it.only(\'validation should fail\', function(done) {
    var body = {
        title: \"dffdasfsdfsdafddfsadsa\",
        description:          


        
4条回答
  •  日久生厌
    2021-02-02 08:06

    This simple throw is working for me

    describe('Lead', () => {
      it('should create a new lead', async () => {
         throw 'not implemented'
      })
    })
    

提交回复
热议问题