Update tests

This commit is contained in:
Chi Vinh Le
2018-08-03 18:24:44 +02:00
parent b3fa5e1e73
commit 7dedf2c129
6 changed files with 2 additions and 41 deletions
@@ -11,7 +11,7 @@ it("should add commentID", () => {
},
};
withSetCommentID(fakePym as any);
expect(location.toString()).toBe("http://localhost/?commentId=comment-id");
expect(location.toString()).toBe("http://localhost/?commentID=comment-id");
window.history.replaceState(previousState, document.title, previousLocation);
});
@@ -21,7 +21,7 @@ it("should remove commentID", () => {
window.history.replaceState(
previousState,
document.title,
"http://localhost/?commentId=comment-id"
"http://localhost/?commentID=comment-id"
);
const fakePym = {
onMessage: (type: string, callback: () => void) => {
@@ -4,9 +4,6 @@ exports[`renders correctly 1`] = `
<div
className="Stream-root"
>
<Logo
gutterBottom={true}
/>
<withContext(createMutationContainer(PostCommentFormContainer))
assetID="asset-id"
/>
@@ -65,9 +62,6 @@ exports[`when there is more disables load more button 1`] = `
<div
className="Stream-root"
>
<Logo
gutterBottom={true}
/>
<withContext(createMutationContainer(PostCommentFormContainer))
assetID="asset-id"
/>
@@ -140,9 +134,6 @@ exports[`when there is more renders a load more button 1`] = `
<div
className="Stream-root"
>
<Logo
gutterBottom={true}
/>
<withContext(createMutationContainer(PostCommentFormContainer))
assetID="asset-id"
/>
@@ -7,11 +7,6 @@ exports[`loads more comments 1`] = `
<div
className="Stream-root"
>
<h1
className="Typography-root Typography-heading1 Typography-colorTextPrimary Typography-gutterBottom"
>
Talk NEO
</h1>
<form
autoComplete="off"
onSubmit={[Function]}
@@ -155,11 +150,6 @@ exports[`renders comment stream 1`] = `
<div
className="Stream-root"
>
<h1
className="Typography-root Typography-heading1 Typography-colorTextPrimary Typography-gutterBottom"
>
Talk NEO
</h1>
<form
autoComplete="off"
onSubmit={[Function]}
@@ -7,11 +7,6 @@ exports[`renders comment stream 1`] = `
<div
className="Stream-root"
>
<h1
className="Typography-root Typography-heading1 Typography-colorTextPrimary Typography-gutterBottom"
>
Talk NEO
</h1>
<form
autoComplete="off"
onSubmit={[Function]}
@@ -7,11 +7,6 @@ exports[`renders comment stream 1`] = `
<div
className="Stream-root"
>
<h1
className="Typography-root Typography-heading1 Typography-colorTextPrimary Typography-gutterBottom"
>
Talk NEO
</h1>
<form
autoComplete="off"
onSubmit={[Function]}
@@ -7,11 +7,6 @@ exports[`renders comment stream 1`] = `
<div
className="Stream-root"
>
<h1
className="Typography-root Typography-heading1 Typography-colorTextPrimary Typography-gutterBottom"
>
Talk NEO
</h1>
<form
autoComplete="off"
onSubmit={[Function]}
@@ -144,11 +139,6 @@ exports[`show all replies 1`] = `
<div
className="Stream-root"
>
<h1
className="Typography-root Typography-heading1 Typography-colorTextPrimary Typography-gutterBottom"
>
Talk NEO
</h1>
<form
autoComplete="off"
onSubmit={[Function]}