diff options
Diffstat (limited to 'test/ext/hyperscript.js')
-rw-r--r-- | test/ext/hyperscript.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ext/hyperscript.js b/test/ext/hyperscript.js index 37602c6e..4c7f8674 100644 --- a/test/ext/hyperscript.js +++ b/test/ext/hyperscript.js @@ -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 put event.detail.errorDetail.error into #d1.innerHTML" hx-get="/test">Click Me!</button>') + var btn = make('<button _="on error.htmx(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"); |