Skip to content

Commit 83640ee

Browse files
chore(stateSpec): clean up extra code from previous merge
1 parent ca7c366 commit 83640ee

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/stateSpec.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,7 @@ describe('state', function () {
3737
ISS2101 = { params: { bar: { squash: false, value: 'qux'}}, url: '/2101/{bar:string}' };
3838
AppInjectable = {};
3939

40-
beforeEach(module(function ($stateProvider, $provide, $exceptionHandlerProvider) {
41-
var x = this;
42-
var foo = jasmine;
43-
$exceptionHandlerProvider.mode('log')
40+
beforeEach(module(function ($stateProvider, $provide) {
4441
angular.forEach([ A, B, C, D, DD, E, H, HH, HHH ], function (state) {
4542
state.onEnter = callbackLogger('onEnter');
4643
state.onExit = callbackLogger('onExit');
@@ -1667,6 +1664,7 @@ describe('exceptions in onEnter', function() {
16671664
});
16681665
}));
16691666

1667+
// Test for #2772
16701668
it('sends $stateChangeError for exceptions in onEnter', inject(function ($state, $q, $rootScope) {
16711669
var called;
16721670
$rootScope.$on('$stateChangeError', function (ev, to, toParams, from, fromParams, options) {

0 commit comments

Comments
 (0)