Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. it('sets the strength to "strong" if the password length is >8 chars', function() {
  2. var $scope = {};
  3. var controller = $controller('PasswordController', { $scope: $scope });
  4. $scope.password = 'longerthaneightchars';
  5.  
  6. $scope.grade();
  7.  
  8. expect($scope.strength).toEqual('strong');
  9. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement