1.0.7 • Published 2 years ago
karma-kendo-uniquode-preprocessor v1.0.7
karma-ng-template-script-to-template-cache-preprocessor
Preprocessor for taking HTML files that have
<script type="text/x-kendo-template"
> and putting them into the Angularjs Template Cache Thanks to karma-ng-html2js-preprocessor for the idea and code snippets
Installation
$ npm install karma-kendo-uniquode-preprocessor --save-dev
Karma config
module.exports = function(config) {
config.set({
preprocessors: {
'**/*.html': ['karma-uniquode-preprocessor'],
'**/*.cshtml': ['karma-uniquode-preprocessor']
},
files: [
'**/*.html',
'**/*.cshtml'
],
// if you have defined plugins explicitly, add karma-ng-template-script-to-template-cache-preprocessor
// plugins: ['karma-kendo-uniquode-preprocessor']
uniquodeTemplatePreprocessor: {
//optional module name , templates by default
//moduleName: 'specialTemplates'
}
})
}
Using it in your tests
describe('example test', function(){
beforeEach(module('templates'));
});
Interested in working at Uniquode Applications Specialists LLP please visit our site for the latest vacancies.