-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(test): update tests to match service files
Change service name in test to use classify instead of camelize Closes #338 Closes #354
- Loading branch information
1 parent
bc1e68e
commit c30464c
Showing
4 changed files
with
24 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
'use strict' | ||
|
||
describe 'Service: <%= _.camelize(name) %>', () -> | ||
describe 'Service: <%= _.classify(name) %>', () -> | ||
|
||
# load the service's module | ||
beforeEach module '<%= _.camelize(appname) %>App' | ||
beforeEach module '<%= _.classify(appname) %>App' | ||
|
||
# instantiate service | ||
<%= _.camelize(name) %> = {} | ||
beforeEach inject (_<%= _.camelize(name) %>_) -> | ||
<%= _.camelize(name) %> = _<%= _.camelize(name) %>_ | ||
<%= _.classify(name) %> = {} | ||
beforeEach inject (_<%= _.classify(name) %>_) -> | ||
<%= _.classify(name) %> = _<%= _.classify(name) %>_ | ||
|
||
it 'should do something', () -> | ||
expect(!!<%= _.camelize(name) %>).toBe true | ||
expect(!!<%= _.classify(name) %>).toBe true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
'use strict' | ||
|
||
describe 'Service: <%= _.camelize(name) %>', () -> | ||
describe 'Service: <%= _.classify(name) %>', () -> | ||
|
||
# load the service's module | ||
beforeEach module '<%= _.camelize(appname) %>App' | ||
beforeEach module '<%= _.classify(appname) %>App' | ||
|
||
# instantiate service | ||
<%= _.camelize(name) %> = {} | ||
beforeEach inject (_<%= _.camelize(name) %>_) -> | ||
<%= _.camelize(name) %> = _<%= _.camelize(name) %>_ | ||
<%= _.classify(name) %> = {} | ||
beforeEach inject (_<%= _.classify(name) %>_) -> | ||
<%= _.classify(name) %> = _<%= _.classify(name) %>_ | ||
|
||
it 'should do something', () -> | ||
expect(!!<%= _.camelize(name) %>).toBe true | ||
expect(!!<%= _.classify(name) %>).toBe true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
'use strict'; | ||
|
||
describe('Service: <%= _.camelize(name) %>', function () { | ||
describe('Service: <%= _.classify(name) %>', function () { | ||
|
||
// load the service's module | ||
beforeEach(module('<%= _.camelize(appname) %>App')); | ||
beforeEach(module('<%= _.classify(appname) %>App')); | ||
|
||
// instantiate service | ||
var <%= _.camelize(name) %>; | ||
beforeEach(inject(function(_<%= _.camelize(name) %>_) { | ||
<%= _.camelize(name) %> = _<%= _.camelize(name) %>_; | ||
var <%= _.classify(name) %>; | ||
beforeEach(inject(function(_<%= _.classify(name) %>_) { | ||
<%= _.classify(name) %> = _<%= _.classify(name) %>_; | ||
})); | ||
|
||
it('should do something', function () { | ||
expect(!!<%= _.camelize(name) %>).toBe(true); | ||
expect(!!<%= _.classify(name) %>).toBe(true); | ||
}); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
'use strict'; | ||
|
||
describe('Service: <%= _.camelize(name) %>', function () { | ||
describe('Service: <%= _.classify(name) %>', function () { | ||
|
||
// load the service's module | ||
beforeEach(module('<%= _.camelize(appname) %>App')); | ||
beforeEach(module('<%= _.classify(appname) %>App')); | ||
|
||
// instantiate service | ||
var <%= _.camelize(name) %>; | ||
beforeEach(inject(function (_<%= _.camelize(name) %>_) { | ||
<%= _.camelize(name) %> = _<%= _.camelize(name) %>_; | ||
var <%= _.classify(name) %>; | ||
beforeEach(inject(function (_<%= _.classify(name) %>_) { | ||
<%= _.classify(name) %> = _<%= _.classify(name) %>_; | ||
})); | ||
|
||
it('should do something', function () { | ||
expect(!!<%= _.camelize(name) %>).toBe(true); | ||
expect(!!<%= _.classify(name) %>).toBe(true); | ||
}); | ||
|
||
}); |