mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-09-30 14:31:47 +00:00
19 lines
535 B
JavaScript
19 lines
535 B
JavaScript
describe("debug extension", function() {
|
|
beforeEach(function () {
|
|
this.server = makeServer();
|
|
clearWorkArea();
|
|
});
|
|
afterEach(function () {
|
|
this.server.restore();
|
|
clearWorkArea();
|
|
});
|
|
|
|
it('works on basic request', function () {
|
|
this.server.respondWith("GET", "/test", "Clicked!");
|
|
var btn = make('<button hx-get="/test" hx-ext="debug">Click Me!</button>')
|
|
btn.click();
|
|
this.server.respond();
|
|
btn.innerHTML.should.equal("Clicked!");
|
|
});
|
|
|
|
}); |