mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-20 12:00:53 +08:00
Add some missing required params to tests
This commit is contained in:
@@ -1,11 +1,21 @@
|
||||
/// <reference path="gapi.auth2.d.ts" />
|
||||
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user