Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('should remove an automated node index', function(done){
var url = 'http://localhost:7475/db/data/schema/index/User/first';
request
.del(url)
.end(function(res) {
expect(res.status).to.be.equal(204);
done();
});
});
it('should remove a relationship index', function(done){
it('should remove a relationship index', function(done){
var url = 'http://localhost:7475/db/data/schema/index/likes/tip';
request
.del(url)
.end(function(res) {
expect(res.status).to.be.equal(204);
done();
});
});
});
it('should deny access to rom deletion', function(done) {
request.del('/api/v1/roms/1234').as('member').end(hlp.status(403, done));
});
module.exports = function (app) {
console.log('Stopping app' + app + '...')
var url = 'http://' + 'localhost' + ':' + '8000' + '/api/activities/' + app
request.del(url, function (err, resp, body) {
if (err) throw err
console.log('%s responded code %s\n%s', url, resp.statusCode, body)
})
}
it('should fail if the game request does not exist', function(done) {
request.del('/api/v1/game_requests/1234').as('moderator').end(hlp.status(404, 'no such game request', done));
});
hlp.release.createRelease('member', request, { buildId: res.body.id }, () => {
request
.del('/api/v1/builds/' + res.body.id)
.as('member')
.end(hlp.status(400, 'Cannot delete referenced build', done));
});
});
del: function(apiKey, path, callback) {
rest
.del(baseUrl + apiVersion + path)
.set('Authorization', apiKey)
.set('Content-Length', 0)
.end(function(err, res) {
processResponse(err, res, callback);
});
}
};
export function deleteSingleProduct(productId) {
SharedActionCreators.startLoading();
request.del(`${products}/${productId}`)
.end(onReply(ServerActionCreators.deleteSingleProduct, productId));
}
return dispatch => {
request.del(`${ROOT}/todo_lists/${id}`)
.set('Accept', 'application/json')
.end((error, res) => {
if (res) {
dispatch(deletedList(res.body))
}
});
}
};
exports.removeAll = function(fn) {
var url = this.url('all');
request.del(url, function(res) {
fn(res.error, res.body);
});
};