Merge branch 'next' into next-respect

This commit is contained in:
Wyatt Johnson
2018-09-26 10:15:37 -06:00
17 changed files with 410 additions and 52 deletions
@@ -35,14 +35,14 @@ it("renders correctly", () => {
expect(wrapper).toMatchSnapshot();
});
it("renders correctly when replies are null", () => {
it("renders correctly when replies are empty", () => {
const props: PropTypesOf<typeof ReplyListContainerN> = {
asset: {
id: "asset-id",
},
comment: {
id: "comment-id",
replies: null,
replies: { edges: [] },
},
relay: {
hasMore: noop,
@@ -45,7 +45,7 @@ exports[`renders correctly 1`] = `
/>
`;
exports[`renders correctly when replies are null 1`] = `""`;
exports[`renders correctly when replies are empty 1`] = `""`;
exports[`when has more replies renders hasMore 1`] = `
<ReplyList
@@ -39,6 +39,7 @@ beforeEach(() => {
edited: false,
editableUntil: "2018-07-06T18:24:30.000Z",
},
replies: { edges: [], pageInfo: {} },
},
},
clientMutationId: "0",