Skip to content

Commit

Permalink
Fix showMessageSpec test case
Browse files Browse the repository at this point in the history
  • Loading branch information
hueitan committed Nov 26, 2015
1 parent 0946ed4 commit 6f6698e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/unit/showMessageSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,17 +112,17 @@ describe('provider.showErrorMessage=false with no-validation-message', function(
$scope = $rootScope.$new();
$timeout = $injector.get('$timeout');

element = $compile('<form name="Form"><input type="text" name="required" ng-model="required" validator="required" no-validation-message></form>')($scope);
element = $compile('<form name="Form"><input type="text" name="required" ng-model="required" validator="required" no-validation-message="true"></form>')($scope);
}));

it('showErrorMessage', inject(function() {
$scope.Form.required.$setViewValue('Required');
var display = element.find('span').css('display');
expect(display).toBe('');
expect(display).toBe('none');

$scope.Form.required.$setViewValue('');
display = element.find('span').css('display');
expect(display).toBe('');
expect(display).toBe('none');
}));

});

0 comments on commit 6f6698e

Please sign in to comment.