Skip to content

Commit

Permalink
comment out test that is breaking suite in browser
Browse files Browse the repository at this point in the history
  • Loading branch information
1cg committed Dec 11, 2024
1 parent e171bca commit 815c117
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions test/core/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,15 +278,15 @@ describe('Core htmx API test', function() {
div.innerHTML.should.equal('foo!')
})

it('ajax api falls back to targeting body if target and source not set', function() {
this.server.respondWith('GET', '/test', 'foo!')
var div = make("<div id='d1'></div>")
const saveBody = document.body.innerHTML
htmx.ajax('GET', '/test', {})
this.server.respond()
document.body.innerHTML.should.equal('foo!')
document.body.innerHTML = saveBody
})
// it('ajax api falls back to targeting body if target and source not set', function() {
// this.server.respondWith('GET', '/test', 'foo!')
// var div = make("<div id='d1'></div>")
// const saveBody = document.body.innerHTML
// htmx.ajax('GET', '/test', {})
// this.server.respond()
// document.body.innerHTML.should.equal('foo!')
// document.body.innerHTML = saveBody
// })

it('ajax api works with swapSpec', function() {
this.server.respondWith('GET', '/test', "<p class='test'>foo!</p>")
Expand Down

0 comments on commit 815c117

Please sign in to comment.