Skip to content

Commit

Permalink
updated: Added tests for riot/riot#3024
Browse files Browse the repository at this point in the history
  • Loading branch information
GianlucaGuarini committed Oct 18, 2024
1 parent affabdb commit 5d0edc7
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion test/bindings/slot.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,18 @@ describe('slot bindings', () => {
type: bindingTypes.SLOT,
selector: '[expr0]',
name: 'default',
template: template('<p>Default</p>'),
template: template('<p expr1> </p>', [
{
selector: '[expr1]',
expressions: [
{
type: expressionTypes.TEXT,
childNodeIndex: 0,
evaluate: (scope) => scope.text,
},
],
},
]),
},
])

Expand Down Expand Up @@ -472,6 +483,7 @@ describe('slot bindings', () => {
target,
{
slots: [],
text: 'Default',
},
{ isVisible: true },
)
Expand Down

0 comments on commit 5d0edc7

Please sign in to comment.