diff --git a/parse/parse-tests.ts b/parse/parse-tests.ts index c7cc6ff49e..d373c064d6 100644 --- a/parse/parse-tests.ts +++ b/parse/parse-tests.ts @@ -265,7 +265,9 @@ function test_user_acl_roles() { role.getRoles().add(role); role.save(); - Parse.User.logOut(); + Parse.User.logOut().then(function (data) { + // logged out + }); } function test_facebook_util() { @@ -397,4 +399,4 @@ function test_view() { var model = Parse.User.current(); var view = new Parse.View(); -} \ No newline at end of file +} diff --git a/parse/parse.d.ts b/parse/parse.d.ts index 9f8df5c3f6..cb4fa8b2b3 100644 --- a/parse/parse.d.ts +++ b/parse/parse.d.ts @@ -649,7 +649,7 @@ declare module Parse { static current(): User; static signUp(username: string, password: string, attrs: any, options?: ParseDefaultOptions): Promise; static logIn(username: string, password: string, options?: ParseDefaultOptions): Promise; - static logOut(): void; + static logOut(): Promise; static allowCustomUserClass(isAllowed: boolean): void; static become(sessionToken: string, options?: ParseDefaultOptions): Promise; static requestPasswordReset(email: string, options?: ParseDefaultOptions): Promise;