Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Error when unit testing a directive - TypeError: Cannot read property 'compile' of undefined #3242

Closed
pheuter opened this issue Jul 16, 2013 · 4 comments

Comments

@pheuter
Copy link

pheuter commented Jul 16, 2013

http://plnkr.co/edit/ufrNwS3CPuFpDNy6LVoU?p=preview

@pheuter
Copy link
Author

pheuter commented Jul 16, 2013

Also see #1859

@pkozlowski-opensource
Copy link
Member

You were missing return in the directive factory function...
Here is a fixed plunk: http://plnkr.co/edit/UKWYcDfhbAnzmaWD9B5E?p=preview

@pheuter
Copy link
Author

pheuter commented Jul 16, 2013

Ah, right, good catch. Ported from CoffeeScript and forgot about that. Thanks.

@nmccready
Copy link

God bless you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants