This commit is contained in:
2017-05-03 09:45:22 +02:00
parent ce90cf2034
commit aa31bbfb49
12 changed files with 110 additions and 35 deletions

View File

@@ -10,7 +10,13 @@ tap.test('should create new Smartscaf instance', async () => {
})
tap.test('Smartscaf instance -> should read a template directory', async () => {
testScafTemplate.readTemplateFromDir('./test/test_template')
await testScafTemplate.readTemplateFromDir('./test/test_template')
expect(testScafTemplate.templateSmartfileArray.length).to.equal(3)
})
tap.test('smartfile -> should accept variables', async () => {
await testScafTemplate.supplyVariables({})
console.log(testScafTemplate.missingVariables)
})
tap.start()