mirror of
https://github.com/pebble-dev/clay.git
synced 2026-08-28 04:46:57 -04:00
Yell at developer if they try and use appKeys
This commit is contained in:
@@ -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([], {});
|
||||
|
||||
Reference in New Issue
Block a user