Skip to content

Commit 383f96e

Browse files
committed
test: attribute as param, issue #99
1 parent 2db3daa commit 383f96e

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

test/expect/attr_param.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<input type="radio" checked="">

test/fixtures/attr_param.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<input type="radio" {{param}}/>

test/test-core.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ test('Boolean attribute', (t) => {
9090
return process(t, 'boolean_attr', null, false, [beautify(), expressions()])
9191
})
9292

93+
test('Attribute as param', (t) => {
94+
return process(t, 'attr_param', null, false, [beautify(), expressions({locals: { param: 'checked' }})])
95+
})
96+
9397
test('Directives options', (t) => {
9498
return process(t, 'directives', null, false, [expressions()], {
9599
directives: [{

0 commit comments

Comments
 (0)