From 189a86bc074edfd1292b0c82faad4a3d1679cf7d Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Fri, 19 Dec 2014 00:34:13 -0300 Subject: [PATCH] karma... wake up! --- test/unit/directives/directivesSpec.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/unit/directives/directivesSpec.js b/test/unit/directives/directivesSpec.js index d8d60c304..507e3c159 100644 --- a/test/unit/directives/directivesSpec.js +++ b/test/unit/directives/directivesSpec.js @@ -191,25 +191,26 @@ describe("Unit: Testing Directives", function() { it('should check very weak password', function() { $scope.password = 'asd'; $scope.$digest(); - expect($scope.passwordStrength).to.equal('Very Weak, that\'s short'); + expect($scope.passwordStrength.strength).to.equal(1); }); + it('should check weak password', function() { $scope.password = 'asdasdASDASD'; $scope.$digest(); - expect($scope.passwordStrength).to.equal('Weak, add numerals'); + expect($scope.passwordStrength.message).to.equal('Weak, add numerals'); }); it('should check medium password', function() { $scope.password = 'asdasdA1'; $scope.$digest(); - expect($scope.passwordStrength).to.equal('Medium, add punctuation'); + expect($scope.passwordStrength.message).to.equal('Medium, add punctuation'); }); it('should check strong password', function() { $scope.password = 'asdasdASDASD1{'; $scope.$digest(); - expect($scope.passwordStrength).to.equal('Strong, add punctuation'); + expect($scope.passwordStrength.message).to.equal('Strong, add punctuation'); }); });