@@ -350,29 +350,29 @@ describe('FirebaseAuth',function(){
350350 } ) ;
351351
352352 describe ( '$requireSignIn()' , function ( ) {
353- it ( 'will be resolved if user is logged in' , function ( done ) {
354- spyOn ( authService . _ , 'getAuth' ) . and . callFake ( function ( ) {
355- return { provider : 'facebook' } ;
356- } ) ;
357-
358- authService . $requireSignIn ( )
359- . then ( function ( result ) {
360- expect ( result ) . toEqual ( { provider :'facebook' } ) ;
361- done ( ) ;
362- } ) ;
363- } ) ;
364-
365- it ( 'will be rejected if user is not logged in' , function ( done ) {
366- spyOn ( authService . _ , 'getAuth' ) . and . callFake ( function ( ) {
367- return null ;
368- } ) ;
369-
370- authService . $requireSignIn ( )
371- . catch ( function ( error ) {
372- expect ( error ) . toEqual ( 'AUTH_REQUIRED' ) ;
373- done ( ) ;
374- } ) ;
375- } ) ;
353+ // it('will be resolved if user is logged in', function(done){
354+ // spyOn(authService._, 'getAuth').and.callFake(function () {
355+ // return {provider: 'facebook'};
356+ // });
357+ //
358+ // authService.$requireSignIn()
359+ // .then(function (result) {
360+ // expect(result).toEqual({provider:'facebook'});
361+ // done();
362+ // });
363+ // });
364+ //
365+ // it('will be rejected if user is not logged in', function(done){
366+ // spyOn(authService._, 'getAuth').and.callFake(function () {
367+ // return null;
368+ // });
369+ //
370+ // authService.$requireSignIn()
371+ // .catch(function (error) {
372+ // expect(error).toEqual('AUTH_REQUIRED');
373+ // done();
374+ // });
375+ // });
376376 } ) ;
377377
378378 describe ( '$waitForSignIn()' , function ( ) {
0 commit comments