mirror of
https://github.com/balzack/databag.git
synced 2025-04-26 19:45:26 +00:00
12 lines
525 B
TypeScript
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);
|
|
});
|