Skip to content

Commit 7d28c9a

Browse files
test(Resolve): Fix previous test oops.
1 parent 39f76cb commit 7d28c9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/viewDirectiveSpec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@ describe('uiView', function () {
363363
expect(_scope.$resolve.user).toBe('joeschmoe')
364364
}));
365365

366+
// Test for #2626
366367
it('should provide the resolved data on the $scope even if there is no controller', inject(function ($state, $q, $timeout) {
367368
var state = angular.extend({}, _state, { template: '{{$resolve.user}}' });
368369
$stateProvider.state(state);
@@ -371,7 +372,6 @@ describe('uiView', function () {
371372

372373
$state.transitionTo('resolve'); $q.flush(); $timeout.flush();
373374
expect(elem.text()).toBe('joeschmoe');
374-
expect(scope.$resolve).toBeDefined();
375375
}));
376376

377377
it('should put the resolved data on the resolveAs variable', inject(function ($state, $q, $timeout) {

0 commit comments

Comments
 (0)