update to handlebars

This commit is contained in:
2017-02-25 23:40:15 +01:00
parent a5a8f5ae24
commit 0113d8ea19
8 changed files with 384 additions and 53 deletions

View File

@@ -1,16 +1,16 @@
import 'typings-test'
import * as should from 'should'
import { expect } from 'smartchai'
import * as tlt from '../dist/index'
describe('tlt', function() {
let testTlt: tlt.Tlt
it('should create a valid instance of tlt', function() {
testTlt = new tlt.Tlt('some awesome {{customString}}')
should(testTlt).be.instanceOf(tlt.Tlt)
})
it('should output a valid string with some data', function(){
let appliedString = testTlt.applyData({customString: 'horse'})
should(appliedString).equal('some awesome horse')
})
describe('tlt', function () {
let testTlt: tlt.Tlt
it('should create a valid instance of tlt', function () {
testTlt = new tlt.Tlt('some awesome {{customString}}')
expect(testTlt).to.be.instanceOf(tlt.Tlt)
})
it('should output a valid string with some data', function () {
let appliedString = testTlt.applyData({ customString: 'horse' })
expect(appliedString).to.equal('some awesome horse')
})
})