mirror of
https://github.com/pebble-dev/clay.git
synced 2026-09-02 23:27:38 -04:00
Add karma testing framework and some basic tests
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user