Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
e10da472
Commit
e10da472
authored
Nov 25, 2014
by
Randall Leeds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update karma config for client templates
parent
71af3388
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
karma.config.js
karma.config.js
+4
-8
No files found.
karma.config.js
View file @
e10da472
...
...
@@ -52,7 +52,7 @@ module.exports = function(config) {
'h/static/scripts/vendor/sinon.js'
,
'h/static/scripts/vendor/chai.js'
,
'h/static/scripts/hypothesis.js'
,
'h/templates/*.html'
,
'h/templates/
client/
*.html'
,
'tests/js/**/*-test.coffee'
],
...
...
@@ -63,14 +63,15 @@ module.exports = function(config) {
// strip templates of leading path
ngHtml2JsPreprocessor
:
{
stripPrefix
:
'h/templates/'
moduleName
:
'h.templates'
,
stripPrefix
:
'h/templates/client/'
},
// preprocess matching files before serving them to the browser
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
preprocessors
:
{
'**/*.coffee'
:
[
'coffee'
],
'h/templates/*.html'
:
[
'ng-html2js'
],
'h/templates/
client/
*.html'
:
[
'ng-html2js'
],
},
...
...
@@ -105,10 +106,5 @@ module.exports = function(config) {
// Continuous Integration mode
// if true, Karma captures browsers, runs the tests and exits
singleRun
:
false
,
ngHtml2JsPreprocessor
:
{
stripPrefix
:
'h/templates/'
,
moduleName
:
'h.templates'
,
}
});
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment