diff --git a/test/core/ajax.js b/test/core/ajax.js index b561e2b9..3db4ab0e 100644 --- a/test/core/ajax.js +++ b/test/core/ajax.js @@ -890,26 +890,6 @@ describe("Core htmx AJAX Tests", function(){ htmx.off("htmx:shouldSwap", handler); }); - it('400 content can be retargeted if configured to do so', function() - { - var handler = htmx.on("htmx:beforeSwap", function (event) { - if (event.detail.xhr.status === 400) { - event.detail.shouldSwap = true; - event.detail.target = byId('d1') - } - }); - - this.server.respondWith("GET", "/test", function (xhr) { - xhr.respond(400, {}, "Clicked!"); - }); - var btn = make('') - var div = make('
') - btn.click(); - this.server.respond(); - div.innerText.should.equal("Clicked!"); - htmx.off("htmx:shouldSwap", handler); - }); - it('content can be modified if configured to do so', function() {