2016-11-20 16:41:26 +00:00
|
|
|
import 'typings-test'
|
2017-02-25 22:40:15 +00:00
|
|
|
import { expect } from 'smartchai'
|
2016-11-20 16:41:26 +00:00
|
|
|
|
|
|
|
import * as tlt from '../dist/index'
|
|
|
|
|
2017-02-25 22:40:15 +00:00
|
|
|
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')
|
|
|
|
})
|
2016-11-20 16:41:26 +00:00
|
|
|
})
|