Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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');
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement