mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-10-03 15:55:39 +00:00
lint
This commit is contained in:
parent
72666d0b4a
commit
d92f165923
@ -1156,17 +1156,17 @@ describe('Core htmx AJAX Tests', function() {
|
|||||||
values.should.deep.equal({ t1: 'textValue', b1: ['inputValue', 'buttonValue'] })
|
values.should.deep.equal({ t1: 'textValue', b1: ['inputValue', 'buttonValue'] })
|
||||||
})
|
})
|
||||||
|
|
||||||
it('properly handles inputs external to form', function () {
|
it('properly handles inputs external to form', function() {
|
||||||
if (!supportsFormAttribute()) {
|
if (!supportsFormAttribute()) {
|
||||||
this._runnable.title += " - Skipped as IE11 doesn't support form attribute"
|
this._runnable.title += " - Skipped as IE11 doesn't support form attribute"
|
||||||
this.skip()
|
this.skip()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
var values;
|
var values
|
||||||
this.server.respondWith("Post", "/test", function (xhr) {
|
this.server.respondWith('Post', '/test', function(xhr) {
|
||||||
values = getParameters(xhr);
|
values = getParameters(xhr)
|
||||||
xhr.respond(204, {}, "");
|
xhr.respond(204, {}, '')
|
||||||
});
|
})
|
||||||
|
|
||||||
make('<form id="externalForm" hx-post="/test">' +
|
make('<form id="externalForm" hx-post="/test">' +
|
||||||
' <input type="hidden" name="b1" value="inputValue">' +
|
' <input type="hidden" name="b1" value="inputValue">' +
|
||||||
@ -1211,13 +1211,13 @@ describe('Core htmx AJAX Tests', function() {
|
|||||||
responded.should.equal(true)
|
responded.should.equal(true)
|
||||||
})
|
})
|
||||||
|
|
||||||
it("can associate submit buttons from outside a form with the current version of the form after swap", function(){
|
it('can associate submit buttons from outside a form with the current version of the form after swap', function() {
|
||||||
if (!supportsFormAttribute()) {
|
if (!supportsFormAttribute()) {
|
||||||
this._runnable.title += " - Skipped as IE11 doesn't support form attribute"
|
this._runnable.title += " - Skipped as IE11 doesn't support form attribute"
|
||||||
this.skip()
|
this.skip()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
const template = '<form ' +
|
const template = '<form ' +
|
||||||
'id="hello" ' +
|
'id="hello" ' +
|
||||||
'hx-target="#hello" ' +
|
'hx-target="#hello" ' +
|
||||||
'hx-select="#hello" ' +
|
'hx-select="#hello" ' +
|
||||||
|
Loading…
x
Reference in New Issue
Block a user