diff options
Diffstat (limited to 'test/attributes/hx-ext.js')
-rw-r--r-- | test/attributes/hx-ext.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/attributes/hx-ext.js b/test/attributes/hx-ext.js index 3e2170ab..cead2f51 100644 --- a/test/attributes/hx-ext.js +++ b/test/attributes/hx-ext.js @@ -83,4 +83,16 @@ describe("hx-ext attribute", function() { ext3Calls.should.equal(1); }); + it('A simple extension is invoked properly w/ data-* prefix', function () { + this.server.respondWith("GET", "/test", "Clicked!"); + + var btn = make('<button data-hx-get="/test" data-hx-ext="ext-1">Click Me!</button>') + btn.click(); + this.server.respond(); + ext1Calls.should.equal(1); + ext2Calls.should.equal(0); + ext3Calls.should.equal(0); + }); + + });
\ No newline at end of file |