now working
This commit is contained in:
@@ -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 () => {
|
||||
|
2
test/test_template/defaults.yml
Normal file
2
test/test_template/defaults.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
templateVar1: from default yaml
|
||||
templateVar2: this is another value from yml
|
Reference in New Issue
Block a user