-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5b6475c
commit 7d43c89
Showing
10 changed files
with
417 additions
and
76 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,16 @@ | ||
'use strict' | ||
|
||
describe 'Controller: AdminCtrl', () -> | ||
|
||
# load the controller's module | ||
beforeEach module 'angularCmsApp' | ||
AdminCtrl = {} | ||
scope = {} | ||
|
||
# Initialize the controller and a mock scope | ||
beforeEach inject ($controller, $rootScope) -> | ||
scope = $rootScope.$new() | ||
AdminCtrl = $controller 'AdminCtrl', { | ||
$scope: scope | ||
} | ||
|
||
it 'should attach a list of awesomeThings to the scope', () -> | ||
expect(scope.awesomeThings.length).toBe 3 | ||
AdminCtrl = null | ||
scope = null | ||
# load the controller's module | ||
beforeEach module 'angularCmsApp' | ||
|
||
beforeEach inject ($controller, $rootScope) -> | ||
scope = $rootScope.$new() | ||
AdminCtrl = $controller 'AdminCtrl', { | ||
$scope: scope | ||
} | ||
|
||
it 'should attach a list of awesomeThings to the scope', () -> | ||
expect(scope.awesomeThings.length).toBe 3 | ||
|
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
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
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: Cmssessionservice', () -> | ||
describe 'Service: cmsSessionService', () -> | ||
|
||
# load the service's module | ||
beforeEach module 'angularCmsApp' | ||
# instantiate service | ||
cmsSessionService = {} | ||
|
||
# instantiate service | ||
Cmssessionservice = {} | ||
beforeEach inject (_Cmssessionservice_) -> | ||
Cmssessionservice = _Cmssessionservice_ | ||
beforeEach inject (_cmsSessionService_) -> | ||
cmsSessionService = _cmsSessionService_ | ||
|
||
it 'should do something', () -> | ||
expect(!!Cmssessionservice).toBe true | ||
expect(!!cmsSessionService).toBe true |