UNPKG

sgtcloud-html5-sdk

Version:

A html5 out-of-box sdk for damn cool mbaas

53 lines (47 loc) 1.5 kB
console.log('----------------------FriendShipExtraService----------------------------'); module('test-FriendShipExtraService'); test('test FriendshipExtraService getAllMyFriendsAndExt', function() { SgtApi.FriendshipExtraService.getAllMyFriendsAndExt(playerId,'',1,1,function(result, data) { if(result) { deepEqual('object', typeof data, data); }else { ok(false, data); } }); }); test('test FriendshipExtraService getMyFriendAndExt', function() { SgtApi.FriendshipExtraService.getMyFriendAndExt(playerId, '', function(result,data) { if(result) { deepEqual('object', typeof data, data); }else { ok(false, data); } }); }); test('test FriendshipExtraService updateAllMyFriendExt', function() { SgtApi.FriendshipExtraService.updateAllMyFriendExt(playerId, 'a', 'a', function(result,data) { if(result) { deepEqual('object', typeof data, data); }else { ok(false, data); } }); }); test('test FriedshipExtraService updateMyFriendAllExt', function() { SgtApi.FriendshipExtraService.updateMyFriendAllExt(playerId, '', null, function(result, data) { if(result) { deepEqual('object', typeof data, data); }else { ok(false, data); } }); }); test('test FriendshipExtraService updateMyFriendExt', function() { SgtApi.FriendshipExtraService.updateMyFriendExt(playerId, '', '', '', function(result,data) { if(result) { deepEqual('object', typeof data, data); }else { ok(false, data); } }); });