Skip to content

Run unit tests for directives with external templates with grunt#27

Merged
Boyko-Karadzhov merged 1 commit intomasterfrom
SelectorTestsJasmine
Sep 12, 2014
Merged

Run unit tests for directives with external templates with grunt#27
Boyko-Karadzhov merged 1 commit intomasterfrom
SelectorTestsJasmine

Conversation

@GeorgiMateev
Copy link
Contributor

To be able to run Jasmine tests for directives that have an external template in a html file, we have to run the grunt task https://github.com/karlgoldstein/grunt-html2js. It saves all templates in a javascript file and registers them in the Angular's $templateCache service. In the client test we get the template from the cache instead of performing get request for a html file.

@Boyko-Karadzhov Boyko-Karadzhov merged commit 1214340 into master Sep 12, 2014
@Tihomir-Petrov Tihomir-Petrov deleted the SelectorTestsJasmine branch January 12, 2015 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants