Tests updated

This commit is contained in:
Belén Curcio
2018-10-08 15:01:34 -03:00
parent 51b7f5470e
commit ec539c2dae
6 changed files with 41 additions and 8 deletions
@@ -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>
@@ -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>
`;
@@ -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>
+2 -2
View File
@@ -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 }
);