mirror of
https://github.com/wassname/talk.git
synced 2026-08-06 13:41:02 +08:00
Snapshots updated
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
import { shallow } from "enzyme";
|
||||
import React from "react";
|
||||
|
||||
import AppContainer from "../containers/AppContainer";
|
||||
|
||||
it("renders comments", () => {
|
||||
const wrapper = shallow(<AppContainer />);
|
||||
expect(wrapper).toMatchSnapshot();
|
||||
});
|
||||
@@ -1,3 +0,0 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`renders comments 1`] = `<Consumer />`;
|
||||
@@ -27,7 +27,7 @@ exports[`cancel edit: edit canceled 1`] = `
|
||||
role="tab"
|
||||
type="button"
|
||||
>
|
||||
commentCount Comments
|
||||
6 Comments
|
||||
</button>
|
||||
</li>
|
||||
<li
|
||||
@@ -436,7 +436,7 @@ exports[`edit a comment: edit form 1`] = `
|
||||
role="tab"
|
||||
type="button"
|
||||
>
|
||||
commentCount Comments
|
||||
6 Comments
|
||||
</button>
|
||||
</li>
|
||||
<li
|
||||
@@ -920,7 +920,7 @@ exports[`edit a comment: optimistic response 1`] = `
|
||||
role="tab"
|
||||
type="button"
|
||||
>
|
||||
commentCount Comments
|
||||
6 Comments
|
||||
</button>
|
||||
</li>
|
||||
<li
|
||||
@@ -1404,7 +1404,7 @@ exports[`edit a comment: render stream 1`] = `
|
||||
role="tab"
|
||||
type="button"
|
||||
>
|
||||
commentCount Comments
|
||||
6 Comments
|
||||
</button>
|
||||
</li>
|
||||
<li
|
||||
@@ -1813,7 +1813,7 @@ exports[`edit a comment: server response 1`] = `
|
||||
role="tab"
|
||||
type="button"
|
||||
>
|
||||
commentCount Comments
|
||||
6 Comments
|
||||
</button>
|
||||
</li>
|
||||
<li
|
||||
@@ -2231,7 +2231,7 @@ exports[`shows expiry message: edit form closed 1`] = `
|
||||
role="tab"
|
||||
type="button"
|
||||
>
|
||||
commentCount Comments
|
||||
6 Comments
|
||||
</button>
|
||||
</li>
|
||||
<li
|
||||
@@ -2640,7 +2640,7 @@ exports[`shows expiry message: edit time expired 1`] = `
|
||||
role="tab"
|
||||
type="button"
|
||||
>
|
||||
commentCount Comments
|
||||
6 Comments
|
||||
</button>
|
||||
</li>
|
||||
<li
|
||||
|
||||
@@ -27,7 +27,7 @@ exports[`loads more comments 1`] = `
|
||||
role="tab"
|
||||
type="button"
|
||||
>
|
||||
commentCount Comments
|
||||
6 Comments
|
||||
</button>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -433,7 +433,7 @@ exports[`renders comment stream 1`] = `
|
||||
role="tab"
|
||||
type="button"
|
||||
>
|
||||
commentCount Comments
|
||||
6 Comments
|
||||
</button>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@@ -27,7 +27,7 @@ exports[`renders permalink view 1`] = `
|
||||
role="tab"
|
||||
type="button"
|
||||
>
|
||||
commentCount Comments
|
||||
6 Comments
|
||||
</button>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -158,7 +158,7 @@ exports[`show all comments 1`] = `
|
||||
role="tab"
|
||||
type="button"
|
||||
>
|
||||
commentCount Comments
|
||||
6 Comments
|
||||
</button>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@ exports[`renders permalink view with unknown asset 1`] = `
|
||||
role="tab"
|
||||
type="button"
|
||||
>
|
||||
commentCount Comments
|
||||
6 Comments
|
||||
</button>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
+2
-2
@@ -27,7 +27,7 @@ exports[`renders permalink view with unknown comment 1`] = `
|
||||
role="tab"
|
||||
type="button"
|
||||
>
|
||||
commentCount Comments
|
||||
6 Comments
|
||||
</button>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -93,7 +93,7 @@ exports[`show all comments 1`] = `
|
||||
role="tab"
|
||||
type="button"
|
||||
>
|
||||
commentCount Comments
|
||||
6 Comments
|
||||
</button>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@@ -27,7 +27,7 @@ exports[`post a comment: optimistic response 1`] = `
|
||||
role="tab"
|
||||
type="button"
|
||||
>
|
||||
commentCount Comments
|
||||
6 Comments
|
||||
</button>
|
||||
</li>
|
||||
<li
|
||||
@@ -504,7 +504,7 @@ exports[`post a comment: server response 1`] = `
|
||||
role="tab"
|
||||
type="button"
|
||||
>
|
||||
commentCount Comments
|
||||
6 Comments
|
||||
</button>
|
||||
</li>
|
||||
<li
|
||||
@@ -971,7 +971,7 @@ exports[`renders comment stream 1`] = `
|
||||
role="tab"
|
||||
type="button"
|
||||
>
|
||||
commentCount Comments
|
||||
6 Comments
|
||||
</button>
|
||||
</li>
|
||||
<li
|
||||
|
||||
@@ -27,7 +27,7 @@ exports[`post a reply: open reply form 1`] = `
|
||||
role="tab"
|
||||
type="button"
|
||||
>
|
||||
commentCount Comments
|
||||
6 Comments
|
||||
</button>
|
||||
</li>
|
||||
<li
|
||||
@@ -889,7 +889,7 @@ exports[`post a reply: optimistic response 1`] = `
|
||||
role="tab"
|
||||
type="button"
|
||||
>
|
||||
commentCount Comments
|
||||
6 Comments
|
||||
</button>
|
||||
</li>
|
||||
<li
|
||||
@@ -1824,7 +1824,7 @@ exports[`post a reply: server response 1`] = `
|
||||
role="tab"
|
||||
type="button"
|
||||
>
|
||||
commentCount Comments
|
||||
6 Comments
|
||||
</button>
|
||||
</li>
|
||||
<li
|
||||
@@ -2622,7 +2622,7 @@ exports[`renders comment stream 1`] = `
|
||||
role="tab"
|
||||
type="button"
|
||||
>
|
||||
commentCount Comments
|
||||
6 Comments
|
||||
</button>
|
||||
</li>
|
||||
<li
|
||||
|
||||
@@ -27,7 +27,7 @@ exports[`post a reply: open reply form 1`] = `
|
||||
role="tab"
|
||||
type="button"
|
||||
>
|
||||
commentCount Comments
|
||||
6 Comments
|
||||
</button>
|
||||
</li>
|
||||
<li
|
||||
@@ -547,7 +547,7 @@ exports[`post a reply: optimistic response 1`] = `
|
||||
role="tab"
|
||||
type="button"
|
||||
>
|
||||
commentCount Comments
|
||||
6 Comments
|
||||
</button>
|
||||
</li>
|
||||
<li
|
||||
@@ -1157,7 +1157,7 @@ exports[`post a reply: server response 1`] = `
|
||||
role="tab"
|
||||
type="button"
|
||||
>
|
||||
commentCount Comments
|
||||
6 Comments
|
||||
</button>
|
||||
</li>
|
||||
<li
|
||||
@@ -1630,7 +1630,7 @@ exports[`renders comment stream 1`] = `
|
||||
role="tab"
|
||||
type="button"
|
||||
>
|
||||
commentCount Comments
|
||||
6 Comments
|
||||
</button>
|
||||
</li>
|
||||
<li
|
||||
|
||||
@@ -27,7 +27,7 @@ exports[`renders comment stream 1`] = `
|
||||
role="tab"
|
||||
type="button"
|
||||
>
|
||||
commentCount Comments
|
||||
6 Comments
|
||||
</button>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@@ -27,7 +27,7 @@ exports[`renders comment stream 1`] = `
|
||||
role="tab"
|
||||
type="button"
|
||||
>
|
||||
commentCount Comments
|
||||
6 Comments
|
||||
</button>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@@ -27,7 +27,7 @@ exports[`renders comment stream 1`] = `
|
||||
role="tab"
|
||||
type="button"
|
||||
>
|
||||
commentCount Comments
|
||||
6 Comments
|
||||
</button>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -389,7 +389,7 @@ exports[`show all replies 1`] = `
|
||||
role="tab"
|
||||
type="button"
|
||||
>
|
||||
commentCount Comments
|
||||
6 Comments
|
||||
</button>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@@ -27,7 +27,7 @@ exports[`renders comment stream 1`] = `
|
||||
role="tab"
|
||||
type="button"
|
||||
>
|
||||
commentCount Comments
|
||||
6 Comments
|
||||
</button>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -701,7 +701,7 @@ exports[`shows conversation 1`] = `
|
||||
role="tab"
|
||||
type="button"
|
||||
>
|
||||
commentCount Comments
|
||||
6 Comments
|
||||
</button>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@@ -15,6 +15,7 @@ import AppContainer from "talk-stream/containers/AppContainer";
|
||||
import createEnvironment from "./createEnvironment";
|
||||
import createFluentBundle from "./createFluentBundle";
|
||||
import createNodeMock from "./createNodeMock";
|
||||
import { comments } from "./fixtures";
|
||||
|
||||
export interface CreateParams {
|
||||
logNetwork?: boolean;
|
||||
@@ -53,7 +54,7 @@ export default function create(params: CreateParams) {
|
||||
|
||||
const testRenderer = TestRenderer.create(
|
||||
<TalkContextProvider value={context}>
|
||||
<AppContainer />
|
||||
<AppContainer commentCount={comments.length} />
|
||||
</TalkContextProvider>,
|
||||
{ createNodeMock }
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user