MVP tests for hass-util.html (#629)

* MVP tests for hass-util.html

* MVP util.js to allow individual JS function export

* Use mocha to unit test js logic

* Isolate mocha test directory

* Move mocha opts to separate file

* Default export of util function

* Use reify for mocha tests instead of babel
This commit is contained in:
Adam Mills
2017-11-15 21:42:54 -08:00
committed by Paulus Schoutsen
parent 3ff9fe1041
commit 70c082716f
9 changed files with 155 additions and 27 deletions
+2
View File
@@ -6,6 +6,7 @@ const rollupConfigEs6 = require('../../rollup.config-es6');
gulp.task('run_rollup_es5', () => gulp.src([
'js/core.js',
'js/compatibility.js',
'js/util.js',
'js/automation-editor/automation-editor.js',
'js/script-editor/script-editor.js',
'demo_data/demo_data.js',
@@ -16,6 +17,7 @@ gulp.task('run_rollup_es5', () => gulp.src([
gulp.task('run_rollup', () => gulp.src([
'js/core.js',
'js/automation-editor/automation-editor.js',
'js/util.js',
'js/script-editor/script-editor.js',
'demo_data/demo_data.js',
])