mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Fix 2.0 branch to passing again
This commit is contained in:
parent
17b185f0a1
commit
e223030331
@ -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 () {
|
||||
|
||||
@ -2,6 +2,7 @@
|
||||
/// <reference types="chai" />
|
||||
|
||||
import * as angular from 'angular';
|
||||
import 'angular-mocks';
|
||||
|
||||
namespace bardTests {
|
||||
var expect = chai.expect,
|
||||
|
||||
@ -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
|
||||
|
||||
3
react-router-redux/index.d.ts
vendored
3
react-router-redux/index.d.ts
vendored
@ -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;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user