diff --git a/gapi.auth2/gapi.auth2-tests.ts b/gapi.auth2/gapi.auth2-tests.ts index cbe6c0fd3..5db036652 100644 --- a/gapi.auth2/gapi.auth2-tests.ts +++ b/gapi.auth2/gapi.auth2-tests.ts @@ -1,11 +1,21 @@ /// function test_init(){ - var auth = gapi.auth2.init(); + var auth = gapi.auth2.init({ + client_id: 'my-id', + cookie_policy: 'single_host_origin', + scope: 'https://www.googleapis.com/auth/plus.login', + fetch_basic_profile: true + }); } function test_getAuthInstance(){ - gapi.auth2.init(); + gapi.auth2.init({ + client_id: 'my-id', + cookie_policy: 'single_host_origin', + scope: 'https://www.googleapis.com/auth/plus.login', + fetch_basic_profile: true + }); var auth = gapi.auth2.getAuthInstance(); } @@ -18,7 +28,7 @@ function test_render(){ }; gapi.signin2.render('testId', { - scope: 'some scope', + scope: 'https://www.googleapis.com/auth/plus.login', width: 250, height: 50, longtitle: true,