Better tests

This commit is contained in:
Chi Vinh Le
2018-09-06 00:07:14 +02:00
parent 441cc9d57b
commit 90a875f40e
7 changed files with 13 additions and 10 deletions
@@ -27,6 +27,7 @@ function createTestRenderer(initialView: string): ReactTestRenderer {
sessionStorage: createInMemoryStorage(),
rest: new RestClient("http://localhost/api"),
postMessage: new PostMessageService(),
browserInfo: { ios: false },
};
return TestRenderer.create(
<TalkContextProvider value={context}>
@@ -37,6 +37,7 @@ beforeEach(() => {
sessionStorage: createInMemoryStorage(),
rest: new RestClient("http://localhost/api"),
postMessage: new PostMessageService(),
browserInfo: { ios: false },
};
testRenderer = TestRenderer.create(
@@ -37,6 +37,7 @@ beforeEach(() => {
sessionStorage: createInMemoryStorage(),
rest: new RestClient("http://localhost/api"),
postMessage: new PostMessageService(),
browserInfo: { ios: false },
};
testRenderer = TestRenderer.create(