mirror of
https://github.com/wassname/talk.git
synced 2026-07-09 12:19:33 +08:00
Tests updated
This commit is contained in:
@@ -27,7 +27,7 @@ exports[`loads more comments 1`] = `
|
||||
role="tab"
|
||||
type="button"
|
||||
>
|
||||
6 Comments
|
||||
2 Comments
|
||||
</button>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@@ -158,7 +158,7 @@ exports[`show all comments 1`] = `
|
||||
role="tab"
|
||||
type="button"
|
||||
>
|
||||
6 Comments
|
||||
2 Comments
|
||||
</button>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
+35
-2
@@ -1,7 +1,40 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`renders permalink view with unknown asset 1`] = `
|
||||
<div>
|
||||
Asset not found
|
||||
<div
|
||||
className="HorizontalGutter-root App-root HorizontalGutter-full"
|
||||
>
|
||||
<ul
|
||||
className="TabBar-root TabBar-primary"
|
||||
role="tablist"
|
||||
>
|
||||
<svg
|
||||
className="Spinner-spinner"
|
||||
height="40px"
|
||||
viewBox="0 0 66 66"
|
||||
width="40px"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<circle
|
||||
className="Spinner-path"
|
||||
cx="33"
|
||||
cy="33"
|
||||
fill="none"
|
||||
r="30"
|
||||
strokeLinecap="round"
|
||||
strokeWidth="6"
|
||||
/>
|
||||
</svg>
|
||||
</ul>
|
||||
<section
|
||||
aria-labelledby="tab-COMMENTS"
|
||||
className="App-tabContent"
|
||||
id="tabPane-COMMENTS"
|
||||
role="tabpanel"
|
||||
>
|
||||
<div>
|
||||
Asset not found
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
`;
|
||||
|
||||
+1
-1
@@ -93,7 +93,7 @@ exports[`show all comments 1`] = `
|
||||
role="tab"
|
||||
type="button"
|
||||
>
|
||||
6 Comments
|
||||
2 Comments
|
||||
</button>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@@ -389,7 +389,7 @@ exports[`show all replies 1`] = `
|
||||
role="tab"
|
||||
type="button"
|
||||
>
|
||||
6 Comments
|
||||
2 Comments
|
||||
</button>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@@ -15,7 +15,7 @@ import createEnvironment from "./createEnvironment";
|
||||
import createFluentBundle from "./createFluentBundle";
|
||||
import createNodeMock from "./createNodeMock";
|
||||
|
||||
import AppQuery from "../queries/AppQuery";
|
||||
import AppContainer from "../containers/AppContainer";
|
||||
|
||||
export interface CreateParams {
|
||||
logNetwork?: boolean;
|
||||
@@ -54,7 +54,7 @@ export default function create(params: CreateParams) {
|
||||
|
||||
const testRenderer = TestRenderer.create(
|
||||
<TalkContextProvider value={context}>
|
||||
<AppQuery />
|
||||
<AppContainer />
|
||||
</TalkContextProvider>,
|
||||
{ createNodeMock }
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user