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
2bbc58fb
Commit
2bbc58fb
authored
Jul 29, 2014
by
Aron Carroll
Committed by
Randall Leeds
Aug 21, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add karma-ng-html2js-preprocessor
This deals with importing templates into the unit tests.
parent
be1016d5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
karma.config.js
karma.config.js
+7
-2
auth-test.coffee
tests/js/auth-test.coffee
+1
-1
No files found.
karma.config.js
View file @
2bbc58fb
...
...
@@ -65,7 +65,7 @@ module.exports = function(config) {
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
preprocessors
:
{
'**/*.coffee'
:
[
'coffee'
],
'
**/*.html'
:
[
'html2js'
]
'
h/templates/*.html'
:
[
'ng-html2js'
],
},
...
...
@@ -99,6 +99,11 @@ module.exports = function(config) {
// Continuous Integration mode
// if true, Karma captures browsers, runs the tests and exits
singleRun
:
false
singleRun
:
false
,
ngHtml2JsPreprocessor
:
{
stripPrefix
:
'h/templates/'
,
moduleName
:
'h.templates'
,
}
});
};
tests/js/auth-test.coffee
View file @
2bbc58fb
...
...
@@ -14,7 +14,7 @@ class MockSession
describe
'h.auth'
,
->
beforeEach
module
(
'h.auth'
)
beforeEach
module
(
'
auth.html
'
)
beforeEach
module
(
'
h.templates
'
)
beforeEach
module
(
$provide
)
->
$provide
.
value
'$timeout'
,
sinon
.
spy
()
...
...
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