Templating bugfix (#86)

This commit is contained in:
Bán Dénes 2023-03-17 10:29:09 +01:00
parent f0d22328cd
commit 9ad080d24c
5 changed files with 34 additions and 7 deletions

View file

@ -33,6 +33,7 @@ describe('Utils', function() {
{longlonglong: 'long', short: 'shortshortshort'}
).should.equal('long_shortshortshort')
u.template('{{a.b.c}}', {a: {b: {c: 'deep'}}}).should.equal('deep')
u.template('{x: {{number}}, y: {{number}}}', {number: 5}).should.equal('{x: 5, y: 5}')
})
it('eq', function() {