tests complete for ClayConfig and ClayItem

This commit is contained in:
Keegan
2016-02-02 20:31:49 -08:00
parent c37012093a
commit 8e5016f0ae
6 changed files with 348 additions and 116 deletions
+6
View File
@@ -15,6 +15,12 @@ function ClayItem(config) {
var self = this;
var _itemType = componentRegistry[config.type];
if (!_itemType) {
throw new Error('the component: ' + config.type + ' is not registered. ' +
'Make sure to register it with ClayConfig.registerComponent()');
}
var _templateData = _.extend({}, _itemType.defaults, config);
/** @type {string|null} */