This repository has been archived by the owner on Mar 26, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(app): services use classified names
Fix app tests that used cameled service names instead of classified names. Closes #484
- Loading branch information
1 parent
a358c1a
commit 56a71a8
Showing
6 changed files
with
27 additions
and
22 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
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: <%= classedName %>', () -> | ||
describe 'Service: <%= cameledName %>', () -> | ||
|
||
# load the service's module | ||
beforeEach module '<%= scriptAppName %>' | ||
|
||
# instantiate service | ||
<%= classedName %> = {} | ||
beforeEach inject (_<%= classedName %>_) -> | ||
<%= classedName %> = _<%= classedName %>_ | ||
<%= cameledName %> = {} | ||
beforeEach inject (_<%= cameledName %>_) -> | ||
<%= cameledName %> = _<%= cameledName %>_ | ||
|
||
it 'should do something', () -> | ||
expect(!!<%= classedName %>).toBe true | ||
expect(!!<%= cameledName %>).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: <%= classedName %>', () -> | ||
describe 'Service: <%= cameledName %>', () -> | ||
|
||
# load the service's module | ||
beforeEach module '<%= scriptAppName %>' | ||
|
||
# instantiate service | ||
<%= classedName %> = {} | ||
beforeEach inject (_<%= classedName %>_) -> | ||
<%= classedName %> = _<%= classedName %>_ | ||
<%= cameledName %> = {} | ||
beforeEach inject (_<%= cameledName %>_) -> | ||
<%= cameledName %> = _<%= cameledName %>_ | ||
|
||
it 'should do something', () -> | ||
expect(!!<%= classedName %>).toBe true | ||
expect(!!<%= cameledName %>).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: <%= classedName %>', function () { | ||
describe('Service: <%= cameledName %>', function () { | ||
|
||
// load the service's module | ||
beforeEach(module('<%= scriptAppName %>')); | ||
|
||
// instantiate service | ||
var <%= classedName %>; | ||
beforeEach(inject(function(_<%= classedName %>_) { | ||
<%= classedName %> = _<%= classedName %>_; | ||
var <%= cameledName %>; | ||
beforeEach(inject(function(_<%= cameledName %>_) { | ||
<%= cameledName %> = _<%= cameledName %>_; | ||
})); | ||
|
||
it('should do something', function () { | ||
expect(!!<%= classedName %>).toBe(true); | ||
expect(!!<%= cameledName %>).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: <%= classedName %>', function () { | ||
describe('Service: <%= cameledName %>', function () { | ||
|
||
// load the service's module | ||
beforeEach(module('<%= scriptAppName %>')); | ||
|
||
// instantiate service | ||
var <%= classedName %>; | ||
beforeEach(inject(function (_<%= classedName %>_) { | ||
<%= classedName %> = _<%= classedName %>_; | ||
var <%= cameledName %>; | ||
beforeEach(inject(function (_<%= cameledName %>_) { | ||
<%= cameledName %> = _<%= cameledName %>_; | ||
})); | ||
|
||
it('should do something', function () { | ||
expect(!!<%= classedName %>).toBe(true); | ||
expect(!!<%= cameledName %>).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