smartscaf/test/test.ts

17 lines
476 B
TypeScript
Raw Normal View History

2017-04-28 22:44:23 +00:00
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)
})
2017-04-30 21:58:03 +00:00
tap.test('Smartscaf instance -> should read a template directory', async () => {
testScafTemplate.readTemplateFromDir('./test/test_template')
})
tap.start()