mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-06 13:11:46 +00:00
Fix 2.0 branch to passing again
This commit is contained in:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user