smartscaf/test/test.ts
2017-04-30 23:58:03 +02:00

17 lines
476 B
TypeScript

import { expect, tap } from 'tapbundle'
import * as smartscaf from '../dist/index'
let testScafTemplate: smartscaf.ScafTemplate
tap.test('should create new Smartscaf instance', async () => {
testScafTemplate = new smartscaf.ScafTemplate()
expect(testScafTemplate).to.be.instanceof(smartscaf.ScafTemplate)
})
tap.test('Smartscaf instance -> should read a template directory', async () => {
testScafTemplate.readTemplateFromDir('./test/test_template')
})
tap.start()