message: [Home/Auctions] adds test
diff: @@ -6,19 +6,30 @@ import { getTestWrapper } from "lib/utils/getTestWrapper"
  import { LotsByFollowedArtists } from "../LotsByFollowedArtists"
  describe("LotsByFollowedArtists", () => {
  - let props
  + it("looks correct when rendered", () => {
  + const props: any = getProps()
  + const { text } = getTestWrapper(<LotsByFollowedArtists {...props} />)
  + expect(text).toContain("Test Lots")
  + })
  +
  + it("should not show when there's no data", () => {
  + const props: any = getProps(false)
  + const { json } = getTestWrapper(<LotsByFollowedArtists {...props} />)
  + expect(json.rendered).toEqual(null)
  + })
  +})
  - beforeEach(() => {
  - props = {
  +const getProps = (withEdges = true) => ({
  title: "Test Lots",
  relay: {
  - hasMore: jest.fn(),
  - loadMore: jest.fn(),
  - isLoading: jest.fn(),
  + hasMore: () => false,
  + loadMore: () => true,
  + isLoading: () => false,
  },
  viewer: {
  sale_artworks: {
  - edges: [
  + edges: withEdges
  + ? [
  {
  node: {
  name: "TestName",
  @@ -30,14 +41,8 @@ describe("LotsByFollowedArtists", () => {
  },
  },
  },
  - ],
  + ]
  + : [],
  },
  },
  - }
  - })
  -
  - it("looks correct when rendered", () => {
  - const { text } = getTestWrapper(<LotsByFollowedArtists {...props} />)
  - expect(text).toContain("Test Lots")
  - })
  })
  