Skip to content

Commit

Permalink
Added test for component invocation with properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Arpita-Jaiswal committed Jan 18, 2025
1 parent 56b5e5b commit 36b12aa
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions v0.5/fastn-unresolved/src/parser/component_invocation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,16 @@ mod tests {
"properties": [{"name": "color", "value": ["red"]}]
}
);
t!(
"-- ftd.text: hello\ncolor: red\nstyle: bold",
{
"content": "ftd.text",
"caption": ["hello"],
"properties": [
{"name": "color", "value": ["red"]},
{"name": "style", "value": ["bold"]}
]
}
);
}
}

0 comments on commit 36b12aa

Please sign in to comment.