Move to protobufjs in ts/groups.ts

This commit is contained in:
Fedor Indutny 2021-06-22 07:46:42 -07:00 committed by GitHub
parent 972a4cba0c
commit 9f0c630574
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
30 changed files with 1424 additions and 964 deletions

View file

@ -9,6 +9,8 @@ const chaiAsPromised = require('chai-as-promised');
const ByteBuffer = require('../components/bytebuffer/dist/ByteBufferAB.js');
const Long = require('../components/long/dist/Long.js');
const { setEnvironment, Environment } = require('../ts/environment');
const { Context: SignalContext } = require('../ts/context');
const { isValidGuid } = require('../ts/util/isValidGuid');
chai.use(chaiAsPromised);
@ -18,6 +20,7 @@ const storageMap = new Map();
// To replicate logic we have on the client side
global.window = {
SignalContext: new SignalContext(),
log: {
info: (...args) => console.log(...args),
warn: (...args) => console.warn(...args),
@ -32,6 +35,7 @@ global.window = {
get: key => storageMap.get(key),
put: async (key, value) => storageMap.set(key, value),
},
isValidGuid,
};
// For ducks/network.getEmptyState()