Skip to content
Permalink
Browse files

test: KVPair with HashMap

  • Loading branch information...
MikeMitterer committed Jul 11, 2018
1 parent 7e8b1dd commit 927fd690cdf2730ac3d2a1c491438e1cac7a0a25
Showing with 9 additions and 0 deletions.
  1. +9 −0 test/kvpair_test.dart
@@ -39,6 +39,15 @@ main() {
expect(output, "abc-Mike Mitterer-def");
}); // end of 'KeyValue-Pair' test

test('> replace key/value with map', () {
final String output = parse('abc-{{name.firstname}}/{{name.lastname}}-def')
.renderString(
new MyKVPair("name", { "firstname" : "Mike", "lastname" : "Mitterer" })
);

expect(output, "abc-Mike/Mitterer-def");
}); // end of 'KeyValue-Pair' test

test('List', () {
final String output = parse('{{#section}}_{{var}}_{{/section}}').renderString({
"section": [

0 comments on commit 927fd69

Please sign in to comment.
You can’t perform that action at this time.