quickmock
quickmock copied to clipboard
Directives that require sibling directives
There is no way to mock a directive that is required by another directive. Need to provide a syntax for mocking directives to test other directives that use them in isolation.
Something like:
.mockDirective('myElement', function(){
return { restrict: 'E' };
});
They have to have a controller of some kind, so need to make sure there is a noop controller.
Thanks to @KaidenR for finding this issue :+1: