Yell at developer if they try and use appKeys

This commit is contained in:
Keegan committed 2016-06-15 11:22:16 -07:00
1 parent 940c5e2451
commit cabee3ae0b
2 files changed
+42 -6

No files matched your search

+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([], {});