Support Map and Set in #each block
Also support Map-keys in lookup-expressions. See #1418 #1679
This commit is contained in:
committed by
Jay Linski
parent
8ce2be4496
commit
ae83edd5c4
@@ -387,6 +387,13 @@ describe('basic context', function () {
|
||||
.toCompileTo('Goodbye beautiful world!');
|
||||
});
|
||||
|
||||
it('nested paths with Map', function () {
|
||||
expectTemplate('Goodbye {{alan/expression}} world!')
|
||||
.withInput({ alan: new Map([['expression', 'beautiful']]) })
|
||||
.withMessage('Nested paths access nested objects')
|
||||
.toCompileTo('Goodbye beautiful world!');
|
||||
});
|
||||
|
||||
it('nested paths with empty string value', function () {
|
||||
expectTemplate('Goodbye {{alan/expression}} world!')
|
||||
.withInput({ alan: { expression: '' } })
|
||||
|
||||
Reference in New Issue
Block a user