diff options
author | carson <carson@leaddyno.com> | 2020-05-17 05:22:19 -0700 |
---|---|---|
committer | carson <carson@leaddyno.com> | 2020-05-17 05:22:19 -0700 |
commit | 3aa8c64754c323f367fae64342f4ac9c20ea5a3d (patch) | |
tree | 6de764954d60c019fb87359007919bb56f0fe8f1 /test/attributes/kt-error-url.js | |
parent | e1e4f25b0ef21e96eda192e69ab89e207dd7f617 (diff) | |
download | htmx-3aa8c64754c323f367fae64342f4ac9c20ea5a3d.tar.gz htmx-3aa8c64754c323f367fae64342f4ac9c20ea5a3d.zip |
le big re-rename
Diffstat (limited to 'test/attributes/kt-error-url.js')
-rw-r--r-- | test/attributes/kt-error-url.js | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/test/attributes/kt-error-url.js b/test/attributes/kt-error-url.js deleted file mode 100644 index 4a573ef1..00000000 --- a/test/attributes/kt-error-url.js +++ /dev/null @@ -1,21 +0,0 @@ -describe("kt-error-url attribute", function(){ - beforeEach(function() { - this.server = makeServer(); - clearWorkArea(); - }); - afterEach(function() { - this.server.restore(); - clearWorkArea(); - }); - - it('Submits a POST with error content on bad request', function() - { - this.server.respondWith("POST", "/error", function(xhr){ - should.equal(JSON.parse(xhr.requestBody).detail.xhr.status, 404); - }); - var btn = make('<button kt-error-url="/error" kt-get="/bad">Click Me!</button>') - btn.click(); - this.server.respond(); - this.server.respond(); - }); -}) |