Fix 2.0 branch to passing again

This commit is contained in:
Ryan Cavanaugh 2016-07-21 10:07:13 -07:00
parent 17b185f0a1
commit e223030331
4 changed files with 5 additions and 15 deletions

View File

@ -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 () {

View File

@ -2,6 +2,7 @@
/// <reference types="chai" />
import * as angular from 'angular';
import 'angular-mocks';
namespace bardTests {
var expect = chai.expect,

View File

@ -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

View File

@ -3,11 +3,10 @@
// Definitions by: Isman Usoh <http://github.com/isman-usoh>, Noah Shipley <https://github.com/noah79>, Dimitri Rosenberg <https://github.com/rosendi>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="redux" />
/// <reference types="react-router"/>
/// <reference types="history"/>
import * as Redux from "redux";
import * as History from "history";
export = ReactRouterRedux;