This commit is contained in:
2017-02-19 04:12:17 +01:00
commit 25c959d12d
15 changed files with 190 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
import 'typings-test'
import * as smarthbs from '../dist/index'
import * as path from 'path'
let testHbsDir = path.join(__dirname, 'hbs_testfiles')
let testPartialDir = path.join(testHbsDir, 'partials')
let testResultDir = path .join(__dirname, 'testresult')
describe('smarthbs', function() {
it('should create partials', function(){
smarthbs.registerPartialDir(testPartialDir)
})
it('should compile a directory', function() {
smarthbs.compileDirectory(testHbsDir, testResultDir, 'data.json')
})
})