How to use the supertest.delete function in supertest

To help you get started, we’ve selected a few supertest examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Inist-CNRS / ezmaster / test / testFakeapp.js View on Github external
it('Delete fakeapp', function (done) {

    request
    .delete('/-/v1/instances/test-fakeapp')
    .expect(200, function (err) {
      done(err);
    });




  });
});
github polonel / trudesk / test / api / users.js View on Github external
it('should delete user', function (done) {
    request
      .delete('/api/v1/users/deleted.user')
      .set('accesstoken', tdapikey)
      .set('Accept', 'application/json')
      .expect(
        200,
        {
          success: true,
          disabled: false
        },
        done
      )
  })
})
github Inist-CNRS / ezmaster / test / testImage.js View on Github external
it('Delete Image', function (done) {

    var nameToDelete = new Buffer('hello-world:latest').toString('base64');

    request
    .delete('/-/v1/app/'+nameToDelete)
    .expect(200, function (err) {
      done(err);
    });




  });
});

supertest

SuperAgent driven library for testing HTTP servers

MIT
Latest version published 6 months ago

Package Health Score

84 / 100
Full package analysis