From 1d0bff6384549b05927690e60c8bf708eda834bf Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 11 Nov 2015 01:40:48 -0500 Subject: add login test --- test/test/02-login.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test') diff --git a/test/test/02-login.js b/test/test/02-login.js index 793a32f8..94113bee 100644 --- a/test/test/02-login.js +++ b/test/test/02-login.js @@ -54,6 +54,16 @@ describe('account', function(){ }) }) + it('works if no token is set on auth', function(done){ + sdk.auth.access_token = "" + sdk.auth.user_id = -1 + promise(sdk.account.login, { data: login_user_data }).then(function(data){ + assert(data.Header.StatusCode == 200) + assert('UserFull' in data) + done() + }) + }) + }) }) -- cgit v1.2.3-70-g09d2