mirror of
https://github.com/pebble-dev/clay.git
synced 2026-08-28 12:56:34 -04:00
26 lines
414 B
JavaScript
26 lines
414 B
JavaScript
'use strict';
|
|
|
|
var _ = require('../src/scripts/vendor/minified/minified')._;
|
|
var idCounter = 0;
|
|
|
|
/**
|
|
* @param {string} type
|
|
* @param {{}} [config]
|
|
* @returns {{}}
|
|
*/
|
|
function fixture(type, config) {
|
|
|
|
var basic = {
|
|
type: type,
|
|
label: type + '-label',
|
|
appKey: 'appKey-' + idCounter,
|
|
id: 'id-' + idCounter
|
|
};
|
|
|
|
idCounter++;
|
|
|
|
return _.extend({}, basic, config);
|
|
}
|
|
|
|
module.exports = fixture;
|