Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('Delete fakeapp', function (done) {
request
.delete('/-/v1/instances/test-fakeapp')
.expect(200, function (err) {
done(err);
});
});
});
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
)
})
})
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);
});
});
});