Problem You wish to test your directive with a unit test. As an example we will use a tab component directive implementation, which can easily be used in your HTML document. <tabs> <pane title="First Tab">First pane.</pane> <pane title="Second Tab">Second pane.</pane> </tabs> The directive implementation is split into the tabs and the pane directive. Let us start with the tabs directive. app.direc