mirror of
https://github.com/wassname/talk.git
synced 2026-08-09 12:30:42 +08:00
Better tests
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user