mirror of
https://github.com/wassname/talk.git
synced 2026-10-02 12:50:49 +08:00
Better tests
This commit is contained in:
1 parent
441cc9d57b
commit
90a875f40e
7 files changed
+13
-10
No files matched your search
@@ -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