forked from yeoman/generator-angular
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from jedmao/eggers-ts
TypeScript Fixes
- Loading branch information
Showing
14 changed files
with
102 additions
and
105 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
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
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,28 +1,26 @@ | ||
/// <reference path="../../../app/bower_components/dt-angular/angular.d.ts" /> | ||
/// <reference path="../../../app/bower_components/dt-angular/angular-mocks.d.ts" /> | ||
/// <reference path="../../../app/bower_components/dt-jasmine/jasmine.d.ts" /> | ||
|
||
/// <reference path="../../../app/scripts/controllers/<%= cameledName.toLowerCase() %>.ts" /> | ||
|
||
'use strict'; | ||
|
||
describe('Controller: <%= classedName %>Ctrl', function () { | ||
describe('Controller: <%= classedName %>Ctrl', () => { | ||
|
||
// load the controller's module | ||
beforeEach(module('<%= scriptAppName %>')); | ||
|
||
var <%= classedName %>Ctrl, | ||
scope; | ||
var <%= classedName %>Ctrl: <%= scriptAppName %>.<%= classedName %>Ctrl, | ||
scope: <%= scriptAppName %>.I<%= classedName %>Scope; | ||
|
||
// Initialize the controller and a mock scope | ||
beforeEach(inject(function ($controller, $rootScope) { | ||
scope = $rootScope.$new(); | ||
beforeEach(inject(($controller: ng.IControllerService, $rootScope: ng.IRootScopeService) => { | ||
scope = <any>$rootScope.$new(); | ||
<%= classedName %>Ctrl = $controller('<%= classedName %>Ctrl', { | ||
$scope: scope | ||
}); | ||
})); | ||
|
||
it('should attach a list of awesomeThings to the scope', function () { | ||
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