now working

This commit is contained in:
2017-05-25 18:32:53 +02:00
parent ddb11fb9b6
commit eac20873e5
13 changed files with 349 additions and 83 deletions

View File

@@ -2,6 +2,8 @@ import { expect, tap } from 'tapbundle'
import * as smartscaf from '../dist/index'
process.env.CI = 'true'
let testScafTemplate: smartscaf.ScafTemplate
tap.test('should create new Smartscaf instance', async () => {
@@ -11,7 +13,7 @@ tap.test('should create new Smartscaf instance', async () => {
tap.test('Smartscaf instance -> should read a template directory', async () => {
await testScafTemplate.readTemplateFromDir('./test/test_template')
expect(testScafTemplate.templateSmartfileArray.length).to.equal(3)
expect(testScafTemplate.templateSmartfileArray.length).to.equal(4)
})
tap.test('smartfile -> should accept variables', async () => {

View File

@@ -0,0 +1,2 @@
templateVar1: from default yaml
templateVar2: this is another value from yml