Skip to content

Commit

Permalink
add back local test
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelWest22 authored Nov 14, 2024
1 parent 41e6011 commit a486cd7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/attributes/hx-ext.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,21 +160,21 @@ describe('hx-ext attribute', function() {
it('Extensions can be local properly', function() {
this.server.respondWith('GET', '/test', 'Clicked!')

make('<div id="div-AA" hx-ext="ext-1,ext-2,ext-5" hx-get="/test" foo="foo" hx-trigger="click">Click Me!' +
make('<div id="div-AA" hx-ext="local:ext-1,ext-2,ext-5" hx-get="/test" foo="foo" hx-trigger="click">Click Me!' +
'<div id="div-BB" hx-ext="ignore:ext-5"><button id="btn-BB" hx-get="/test" foo="foo" hx-trigger="click consume"></button></div></div>')

var div1 = byId('div-AA')
var btn2 = byId('btn-BB')

btn2.click()
this.server.respond()
ext1Calls.should.equal(1)
ext1Calls.should.equal(0)
ext2Calls.should.equal(1)
ext3Calls.should.equal(0)

div1.click()
this.server.respond()
ext1Calls.should.equal(2)
ext1Calls.should.equal(1)
ext2Calls.should.equal(2)
ext3Calls.should.equal(0)

Expand Down

0 comments on commit a486cd7

Please sign in to comment.