Add karma testing framework and some basic tests

This commit is contained in:
Keegan
2016-01-27 00:05:36 -08:00
parent 13b84f7e6c
commit 039334e26c
5 changed files with 173 additions and 5 deletions
+19
View File
@@ -0,0 +1,19 @@
'use strict';
var idCounter = 0;
function fixture(type, config) {
var basic = {
type: type,
label: type + '-label',
appKey: 'appKey-' + idCounter,
id: 'id-' + idCounter
};
idCounter ++;
return Object.assign({}, basic, config);
}
module.exports = fixture;