Created
October 19, 2015 19:37
-
-
Save yngvebn/bb5a0ff2edd16f2f5e2f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('$scope.grade', function() { | |
it('sets the strength to "strong" if the password length is >8 chars', function() { | |
var $scope = {}; | |
var controller = $controller('PasswordController', { $scope: $scope }); | |
$scope.password = 'longerthaneightchars'; | |
$scope.grade(); | |
expect($scope.strength).toEqual('strong'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment