quickmock icon indicating copy to clipboard operation
quickmock copied to clipboard

Directives that require sibling directives

Open tennisgent opened this issue 9 years ago • 0 comments

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:

tennisgent avatar Mar 12 '15 20:03 tennisgent