From 740256772ea58e664dbdf083ddb872c66f99156b Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Fri, 25 Jul 2014 12:34:31 -0300 Subject: [PATCH] fix password tests --- test/unit/directives/directivesSpec.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/unit/directives/directivesSpec.js b/test/unit/directives/directivesSpec.js index dbca2ce8e..07d71e84d 100644 --- a/test/unit/directives/directivesSpec.js +++ b/test/unit/directives/directivesSpec.js @@ -180,25 +180,25 @@ describe("Unit: Testing Directives", function() { it('should check very weak password', function() { $scope.password = 'asd'; $scope.$digest(); - expect($scope.passwordStrength).to.equal('very weak'); + expect($scope.passwordStrength).to.equal('Very Weak, that\'s short'); }); it('should check weak password', function() { $scope.password = 'asdasdASDASD'; $scope.$digest(); - expect($scope.passwordStrength).to.equal('weak'); + expect($scope.passwordStrength).to.equal('Weak, add numerals'); }); it('should check medium password', function() { - $scope.password = 'asdasdASDASD1'; + $scope.password = 'asdasdA1'; $scope.$digest(); - expect($scope.passwordStrength).to.equal('medium'); + expect($scope.passwordStrength).to.equal('Medium, add punctuation'); }); it('should check strong password', function() { $scope.password = 'asdasdASDASD1{'; $scope.$digest(); - expect($scope.passwordStrength).to.equal('strong'); + expect($scope.passwordStrength).to.equal('Strong, add punctuation'); }); });