summaryrefslogtreecommitdiffstatshomepage
path: root/test/ext/hyperscript.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/ext/hyperscript.js')
-rw-r--r--test/ext/hyperscript.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ext/hyperscript.js b/test/ext/hyperscript.js
index 4c7f8674..07b93bfd 100644
--- a/test/ext/hyperscript.js
+++ b/test/ext/hyperscript.js
@@ -18,7 +18,7 @@ describe("hyperscript integration", function() {
it('can handle htmx driven events', function () {
this.server.respondWith("GET", "/test", "Clicked!");
- var btn = make('<button _="on afterSettle.htmx add .afterSettle" hx-get="/test">Click Me!</button>')
+ var btn = make('<button _="on htmx:afterSettle add .afterSettle" hx-get="/test">Click Me!</button>')
btn.classList.contains("afterSettle").should.equal(false);
btn.click();
this.server.respond();
@@ -28,7 +28,7 @@ describe("hyperscript integration", function() {
it('can handle htmx error events', function () {
this.server.respondWith("GET", "/test", [404, {}, "Bad request"]);
var div = make('<div id="d1"></div>')
- var btn = make('<button _="on error.htmx(errorInfo) put errorInfo.error into #d1.innerHTML" hx-get="/test">Click Me!</button>')
+ var btn = make('<button _="on htmx:error(errorInfo) put errorInfo.error into #d1.innerHTML" hx-get="/test">Click Me!</button>')
btn.click();
this.server.respond();
div.innerHTML.should.equal("Response Status Error Code 404 from /test");