Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- describe('user is not logged in', function(){
- it('should log in the user', function(){
- var response = {
- session: null
- };
- spyOn(FB, 'init');
- spyOn(FB, 'getLoginStatus');
- spyOn(FB, 'login');
- step2._initialize();
- expect(FB.init).toHaveBeenCalled();
- expect(FB.getLoginStatus).toHaveBeenCalled();
- FB.getLoginStatus.mostRecentCall.args[0](response);
- expect(FB.login).toHaveBeenCalled();
- })
- })
Add Comment
Please, Sign In to add comment