summaryrefslogtreecommitdiffstatshomepage
path: root/test/attributes/hx-boost.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/attributes/hx-boost.js')
-rw-r--r--test/attributes/hx-boost.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/attributes/hx-boost.js b/test/attributes/hx-boost.js
index 41dfb29e..49483b3c 100644
--- a/test/attributes/hx-boost.js
+++ b/test/attributes/hx-boost.js
@@ -47,6 +47,15 @@ describe("hx-boost attribute", function() {
div.innerHTML.should.equal("Boosted");
})
+ it('handles basic anchor properly w/ data-* prefix', function () {
+ this.server.respondWith("GET", "/test", "Boosted");
+ var div = make('<div data-hx-target="this" data-hx-boost="true"><a id="a1" href="/test">Foo</a></div>');
+ var a = byId('a1');
+ a.click();
+ this.server.respond();
+ div.innerHTML.should.equal("Boosted");
+ })
+
});