diff --git a/angular-wizard/angular-wizard-tests.ts b/angular-wizard/angular-wizard-tests.ts index 3f55e27356..3fd77ae8a8 100644 --- a/angular-wizard/angular-wizard-tests.ts +++ b/angular-wizard/angular-wizard-tests.ts @@ -2,6 +2,8 @@ // test file taken from https://github.com/mgonto/angular-wizard +import * as ng from "angular"; +import * as angular from "angular"; interface IWizardScope extends ng.IScope { referenceCurrentStep: string; @@ -21,18 +23,6 @@ describe('AngularWizard', function () { beforeEach(() => angular.module('mgo-angular-wizard')); - beforeEach(inject(function (_$compile_: ng.ICompileService, - _$q_: ng.IQService, - _$rootScope_: ng.IRootScopeService, - _$timeout_: ng.ITimeoutService, - _WizardHandler_: angular.mgoAngularWizard.WizardHandler) { - $compile = _$compile_; - $q = _$q_; - $rootScope = _$rootScope_; - $timeout = _$timeout_; - WizardHandler = _WizardHandler_; - })); - /** * Create the generic view with wizard to test * @param {Scope} scope A scope to bind to @@ -272,7 +262,6 @@ describe('AngularWizard', function () { $rootScope.$digest(); expect(scope.referenceCurrentStep).toEqual('Continuing'); WizardHandler.wizard().next(); - $timeout.flush(); expect(scope.referenceCurrentStep).toEqual('More steps'); }); it("should go to the next step because CANEXIT is set to true", function () { diff --git a/bardjs/bardjs-tests.ts b/bardjs/bardjs-tests.ts index be685826c3..2d312634ca 100644 --- a/bardjs/bardjs-tests.ts +++ b/bardjs/bardjs-tests.ts @@ -2,6 +2,7 @@ /// import * as angular from 'angular'; +import 'angular-mocks'; namespace bardTests { var expect = chai.expect, diff --git a/react-redux/react-redux-tests.tsx b/react-redux/react-redux-tests.tsx index 47bdba76ce..9da5bd58a1 100644 --- a/react-redux/react-redux-tests.tsx +++ b/react-redux/react-redux-tests.tsx @@ -11,6 +11,7 @@ import { Router, RouterState } from 'react-router'; import { Store, Dispatch, bindActionCreators } from 'redux'; import { connect, Provider } from 'react-redux'; import objectAssign = require('object-assign'); +import * as History from 'history'; // // Quick Start diff --git a/react-router-redux/index.d.ts b/react-router-redux/index.d.ts index 12102729fd..d90ffd6ec8 100644 --- a/react-router-redux/index.d.ts +++ b/react-router-redux/index.d.ts @@ -3,11 +3,10 @@ // Definitions by: Isman Usoh , Noah Shipley , Dimitri Rosenberg // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// /// -/// import * as Redux from "redux"; +import * as History from "history"; export = ReactRouterRedux;