Fix types and tests

This commit is contained in:
Chi Vinh Le
2018-09-07 00:51:57 +02:00
parent c1cefe52d0
commit df664bdb73
3 changed files with 12 additions and 32 deletions
@@ -5,6 +5,8 @@ import { Child as PymChild } from "pym.js";
import React from "react";
import { Formatter } from "react-timeago";
import { Environment, Network, RecordSource, Store } from "relay-runtime";
import uuid from "uuid/v4";
import { getBrowserInfo } from "talk-framework/lib/browserInfo";
import { LOCAL_ID } from "talk-framework/lib/relay";
import {
@@ -135,6 +137,7 @@ export default async function createContext({
(pym && inIframe && createPymStorage(pym, "sessionStorage")) ||
createPromisifiedStorage(createSessionStorage()),
browserInfo: getBrowserInfo(),
uuidGenerator: uuid,
};
// Run custom initializations.