Commit f8f0ef1f by Ben McMorran Committed by cahrens

Removes unnecessary PUT after DELETE

parent 572b4fc0
......@@ -342,16 +342,11 @@ define(["jquery", "underscore", "underscore.string", "js/spec_helpers/create_sin
create_sinon.respondWithJson(requests, {});
// first request contains given component's id (to delete the component)
expect(requests[requests.length - 3].url).toMatch(
new RegExp("locator-component-" + GROUP_TO_TEST + (componentIndex + 1))
);
// second request contains parent's id (to remove as child)
expect(requests[requests.length - 2].url).toMatch(
new RegExp("locator-group-" + GROUP_TO_TEST)
new RegExp("locator-component-" + GROUP_TO_TEST + (componentIndex + 1))
);
// third request if a fetch of the container.
// second request if a fetch of the container.
expect(lastRequest().url).toMatch(
new RegExp("locator-container")
);
......
......@@ -213,7 +213,6 @@ define(["jquery", "underscore", "gettext", "js/views/baseview", "js/views/contai
xblock = xblockView.xblock,
parent = this.findXBlockElement(xblockElement.parent());
xblockElement.remove();
xblockView.updateChildren(parent);
xblock.runtime.notify('deleted-child', parent.data('locator'));
// Update publish and last modified information from the server.
this.model.fetch();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment