|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
import chai, { expect } from 'chai';
|
|
|
|
|
import Sinon from 'sinon';
|
|
|
|
|
import chaiAsPromised from 'chai-as-promised';
|
|
|
|
|
import { TypedStub, generateFakeSnode, stubWindowLog } from '../../../test-utils/utils';
|
|
|
|
|
import { TypedStub, generateFakeSnode } from '../../../test-utils/utils';
|
|
|
|
|
import { GetExpiriesFromNodeSubRequest } from '../../../../session/apis/snode_api/SnodeRequestTypes';
|
|
|
|
|
import { UserUtils } from '../../../../session/utils';
|
|
|
|
|
import { isValidUnixTimestamp } from '../../../../session/utils/Timestamps';
|
|
|
|
@ -17,8 +17,6 @@ import { SnodeSignature } from '../../../../session/apis/snode_api/snodeSignatur
|
|
|
|
|
chai.use(chaiAsPromised as any);
|
|
|
|
|
|
|
|
|
|
describe('GetExpiriesRequest', () => {
|
|
|
|
|
stubWindowLog();
|
|
|
|
|
|
|
|
|
|
const getLatestTimestampOffset = 200000;
|
|
|
|
|
const ourNumber = '37e1631b002de498caf7c5c1712718bde7f257c6dadeed0c21abf5e939e6c309';
|
|
|
|
|
const ourUserEd25516Keypair = {
|
|
|
|
|