Yell at developer if they try and use appKeys

This commit is contained in:
Keegan
2016-06-15 11:22:16 -07:00
parent 940c5e2451
commit cabee3ae0b
2 changed files with 42 additions and 6 deletions
+9
View File
@@ -31,6 +31,15 @@ describe('Clay', function() {
}, /must be an Array/i);
});
it('throws if the config contains appKeys', function() {
assert.throws(function() {
fixture.clay([
{type: 'input', appKey: 'foo'},
{type: 'someCustomComponent', appKey: 'bar'}
]);
}, /appKeys are no longer supported/i);
});
it('throws if customFn is not a function', function() {
assert.throws(function() {
fixture.clay([], {});