databag/app/sdk/__tests__/session.tests.ts
2024-07-03 16:19:02 -07:00

12 lines
525 B
TypeScript

import { DatabagSDK } from '../src/index';
import { type SessionParams } from '../src/types';
test('allocates session correctly', async () => {
const sdk = new DatabagSDK(null);
const params: SessionParams = { topicBatch: 0, tagBatch: 0, channelTypes: [], pushType: '', deviceToken: '', notifications: [], deviceId: '', version: '', appName: '' };
const session = await sdk.login('handle', 'password', 'url', params);
const account = session.getAccount();
account.enableNotifications();
//expect(r).toBe(5);
});