Quantcast
Channel: Chutzpah - A JavaScript Test Runner
Viewing all articles
Browse latest Browse all 1864

Commented Unassigned: Support for Angular (aka pure) HTML template imports [269]

$
0
0
We are using Chutzpah with QUnit to unit test our client side code which is built on the AngularJS framework. We have defined several AngularJS directives that reference templates located in external HTML files. These HTML files contain standard HTML snippets and are not wrapped with a <script type="text/html"> tag.

It would be great if Chutzpah could extend it's existing template support to support pure HTML templates like those used by AngularJS. We would envision the implementation being a variation of the html2Js plugin used by the Karma test runner. The syntax to include templates could mirror that used by the existing template support in Chutzpah.

See: [html2js for Karma](https://github.com/karma-runner/karma-ng-html2js-preprocessor)
Related work item: [#144](https://chutzpah.codeplex.com/WorkItem/144)

Let me know if you have any questions about our request. Thank you!
Comments: Would you be interesting in contributing this work to Chutzpah? I have not worked with Angular before so it would be great if someone who truly understood its scenarios could make changes to Chutzpah works well with it. If you can I would help guide you in terms of how to work with Chutzpah.

Viewing all articles
Browse latest Browse all 1864

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>