You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
867 B
TypeScript
44 lines
867 B
TypeScript
import chai from 'chai';
|
|
import { generateChatMessage, generateFakePubKey } from '../../test-utils/testUtils';
|
|
import { toRawMessage } from '../../../session/utils/Messages';
|
|
import { PubKey } from '../../../session/types/';
|
|
import { from } from '../../../session/utils/SyncMessage';
|
|
|
|
// tslint:disable-next-line: no-require-imports no-var-requires
|
|
const chaiAsPromised = require('chai-as-promised');
|
|
chai.use(chaiAsPromised);
|
|
|
|
const { expect } = chai;
|
|
|
|
describe('Sync Message Utils', () => {
|
|
|
|
describe('from', () => {
|
|
it('can convert to sync message', async () => {
|
|
const message = generateChatMessage();
|
|
|
|
const syncMessage = from(message);
|
|
// Stubbed
|
|
});
|
|
|
|
|
|
});
|
|
|
|
describe('canSync', () => {
|
|
it('', async () => {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
describe('getSyncContacts', () => {
|
|
it('', async () => {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
});
|