mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-04 16:04:45 +08:00
Add tests for angular-mocks' typings.
This commit is contained in:
@@ -87,6 +87,16 @@ logCall = logService.warn;
|
||||
|
||||
logs = logCall.logs;
|
||||
|
||||
///////////////////////////////////////
|
||||
// IComponentControllerService
|
||||
///////////////////////////////////////
|
||||
var $componentController: ng.IComponentControllerService;
|
||||
$componentController<{}, {}>('Test controller', { $scope: <ng.IScope>{} });
|
||||
$componentController<{}, {}>('Test controller', { $scope: <ng.IScope>{}, test: true });
|
||||
$componentController<{}, { test: boolean }>('Test controller', { $scope: <ng.IScope>{} }, { test: true});
|
||||
$componentController<{}, { test?: boolean }>('Test controller', { $scope: <ng.IScope>{} }, {});
|
||||
$componentController<{}, {}>('Test controller', { $scope: <ng.IScope>{} }, {}, 'identity');
|
||||
$componentController<{ cb: () => void }, {}>('Test controller', { $scope: <ng.IScope>{} });
|
||||
|
||||
///////////////////////////////////////
|
||||
// IHttpBackendService
|
||||
|
||||
Reference in New Issue
Block a user