MetaPhase-Consulting/State-TalentMAP

View on GitHub
src/Components/BidTracker/BidTrackerCardList/__snapshots__/BidTrackerCardList.test.jsx.snap

Summary

Maintainability
Test Coverage
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`BidTrackerCardListComponent matches snapshot 1`] = `
<div
  className="usa-grid-full"
>
  <BidTrackerCardContainer
    acceptBid={[Function]}
    bid={
      Object {
        "approved_date": "2017-12-20",
        "closed_date": "2017-12-20",
        "create_date": "2017-12-20",
        "declined_date": "2017-12-20",
        "draft_date": "2017-12-20",
        "handshake_accepted_date": "2017-12-20",
        "handshake_declined_date": "2017-12-20",
        "handshake_offered_date": "2017-12-20",
        "id": 1,
        "in_panel_date": "2017-12-20",
        "is_priority": true,
        "position_info": Object {
          "bid_statistics": Array [
            Object {
              "at_skill": 0,
              "has_handshake_accepted": null,
              "has_handshake_offered": false,
              "id": null,
              "in_grade": 0,
              "in_grade_at_skill": 0,
              "total_bids": 0,
            },
          ],
          "position": Object {
            "bidcycle": Object {
              "name": "Demo BidCycle 2017-10-31 16:00:51.254762",
            },
            "bureau": "(AF) BUREAU OF AFRICAN AFFAIRS",
            "create_date": "2006-09-20",
            "grade": "05",
            "id": 1,
            "position_number": "00003026",
            "post": Object {
              "id": 235,
              "location": Object {
                "city": "Freetown",
                "code": "00A",
                "country": "Sierra Leone",
                "id": 103,
                "state": "",
              },
            },
            "skill": "OFFICE MANAGEMENT (9017)",
            "title": "OMS (COM)",
            "update_date": "2017-06-08",
          },
        },
        "reviewer": Object {
          "email": "woodwardw@state.gov",
          "first_name": "Wendy",
          "is_cdo": false,
          "last_name": "Woodward",
          "phone_number": "555-555-5555",
          "username": "woodwardw",
        },
        "scheduled_panel_date": "2017-12-20",
        "status": "closed",
        "submitted_date": "2017-12-20",
        "update_date": "2017-12-20",
        "user": "rehmant",
      }
    }
    declineBid={[Function]}
    deleteBid={[Function]}
    isPriority={false}
    key="1"
    priorityExists={true}
    registerHandshake={[Function]}
    submitBid={[Function]}
    unregisterHandshake={[Function]}
    useCDOView={false}
    userProfile={
      Object {
        "bid_statistics": Array [
          Object {
            "draft": 1,
            "submitted": 1,
          },
        ],
        "cdo": Object {
          "email": "shadtrachl@state.gov",
          "first_name": "Leah",
          "initials": "LS",
          "last_name": "Shadtrach",
          "username": "shadtrachl",
        },
        "display_name": "John",
        "emp_id": "1",
        "employee_info": Object {
          "grade": "00",
          "skills": Array [
            Object {
              "code": "6218",
              "description": "CONSTRUCTION ENGINEERING",
            },
            Object {
              "code": "6211",
              "description": "COMPUTER SCIENCE",
            },
          ],
        },
        "employee_profile_url": Object {
          "external": "https://external.com",
          "internal": "https://internal.com",
        },
        "favorite_positions": Array [
          Object {
            "id": 1,
            "representation": "[00003026] OMS (COM) (Freetown, Sierra Leone)",
          },
          Object {
            "id": 4,
            "representation": "[00180000] OMS (DCM) (Addis Ababa, Ethiopia)",
          },
        ],
        "favorite_positions_pv": Array [
          Object {
            "id": 10,
          },
          Object {
            "id": 20,
          },
        ],
        "favorite_tandem_positions": Array [
          Object {
            "id": 1,
            "representation": "[00003026] OMS (COM) (Freetown, Sierra Leone)",
          },
          Object {
            "id": 4,
            "representation": "[00180000] OMS (DCM) (Addis Ababa, Ethiopia)",
          },
        ],
        "favorite_tandem_positions_pv": Array [
          Object {
            "id": 10,
          },
          Object {
            "id": 20,
          },
        ],
        "grade": "03",
        "id": 1,
        "initials": "JD",
        "is_cdo": false,
        "skills": Array [
          63,
          40,
        ],
        "user": Object {
          "email": "doej@state.gov",
          "first_name": "John",
          "initials": "JD",
          "last_name": "Doe",
          "username": "jdoe",
        },
        "user_info": Object {
          "office_address": "1234 Apple St. NW Washington, DC 20010",
          "office_phone": "202-876-5432",
        },
      }
    }
  />
  <BidTrackerCardContainer
    acceptBid={[Function]}
    bid={
      Object {
        "approved_date": "2017-12-20",
        "closed_date": "2017-12-20",
        "create_date": "2017-12-20",
        "declined_date": "2017-12-20",
        "draft_date": "2017-12-20",
        "handshake_accepted_date": "2017-12-20",
        "handshake_declined_date": "2017-12-20",
        "handshake_offered_date": "2017-12-20",
        "id": 3,
        "in_panel_date": "2017-12-20",
        "is_priority": false,
        "position_info": Object {
          "bid_statistics": Array [
            Object {
              "at_skill": 0,
              "has_handshake_accepted": null,
              "has_handshake_offered": false,
              "id": null,
              "in_grade": 0,
              "in_grade_at_skill": 0,
              "total_bids": 0,
            },
          ],
          "bidcycle": Object {
            "name": "Demo BidCycle 2017-10-31 16:00:51.254762",
          },
          "id": 11,
          "position": Object {
            "bureau": "(AF) BUREAU OF AFRICAN AFFAIRS",
            "create_date": "2015-08-05",
            "grade": "03",
            "position_number": "10035561",
            "post": Object {
              "id": 199,
              "location": Object {
                "city": "Freetown",
                "code": "00A",
                "country": "Sierra Leone",
                "id": 103,
                "state": "",
              },
            },
            "skill": "POLITICAL AND ECONOMIC AFFAIRS (6050)",
            "title": "POLITICAL/ECONOMIC OFFICER",
            "update_date": "2017-06-08",
          },
        },
        "reviewer": Object {
          "email": "woodwardw@state.gov",
          "first_name": "Wendy",
          "is_cdo": false,
          "last_name": "Woodward",
          "phone_number": "555-555-5555",
          "username": "woodwardw",
        },
        "scheduled_panel_date": "2017-12-20",
        "status": "approved",
        "submitted_date": "2017-12-20",
        "update_date": "2017-12-20",
        "user": "rehmant",
      }
    }
    declineBid={[Function]}
    deleteBid={[Function]}
    isPriority={false}
    key="3"
    priorityExists={true}
    registerHandshake={[Function]}
    submitBid={[Function]}
    unregisterHandshake={[Function]}
    useCDOView={false}
    userProfile={
      Object {
        "bid_statistics": Array [
          Object {
            "draft": 1,
            "submitted": 1,
          },
        ],
        "cdo": Object {
          "email": "shadtrachl@state.gov",
          "first_name": "Leah",
          "initials": "LS",
          "last_name": "Shadtrach",
          "username": "shadtrachl",
        },
        "display_name": "John",
        "emp_id": "1",
        "employee_info": Object {
          "grade": "00",
          "skills": Array [
            Object {
              "code": "6218",
              "description": "CONSTRUCTION ENGINEERING",
            },
            Object {
              "code": "6211",
              "description": "COMPUTER SCIENCE",
            },
          ],
        },
        "employee_profile_url": Object {
          "external": "https://external.com",
          "internal": "https://internal.com",
        },
        "favorite_positions": Array [
          Object {
            "id": 1,
            "representation": "[00003026] OMS (COM) (Freetown, Sierra Leone)",
          },
          Object {
            "id": 4,
            "representation": "[00180000] OMS (DCM) (Addis Ababa, Ethiopia)",
          },
        ],
        "favorite_positions_pv": Array [
          Object {
            "id": 10,
          },
          Object {
            "id": 20,
          },
        ],
        "favorite_tandem_positions": Array [
          Object {
            "id": 1,
            "representation": "[00003026] OMS (COM) (Freetown, Sierra Leone)",
          },
          Object {
            "id": 4,
            "representation": "[00180000] OMS (DCM) (Addis Ababa, Ethiopia)",
          },
        ],
        "favorite_tandem_positions_pv": Array [
          Object {
            "id": 10,
          },
          Object {
            "id": 20,
          },
        ],
        "grade": "03",
        "id": 1,
        "initials": "JD",
        "is_cdo": false,
        "skills": Array [
          63,
          40,
        ],
        "user": Object {
          "email": "doej@state.gov",
          "first_name": "John",
          "initials": "JD",
          "last_name": "Doe",
          "username": "jdoe",
        },
        "user_info": Object {
          "office_address": "1234 Apple St. NW Washington, DC 20010",
          "office_phone": "202-876-5432",
        },
      }
    }
  />
  <BidTrackerCardContainer
    acceptBid={[Function]}
    bid={
      Object {
        "approved_date": "2017-12-20",
        "closed_date": "2017-12-20",
        "create_date": "2017-12-20",
        "declined_date": "2017-12-20",
        "draft_date": "2017-12-20",
        "handshake_accepted_date": "2017-12-20",
        "handshake_declined_date": "2017-12-20",
        "handshake_offered_date": "2017-12-20",
        "id": 2,
        "in_panel_date": "2017-12-20",
        "is_priority": false,
        "position_info": Object {
          "bid_statistics": Array [
            Object {
              "at_skill": 0,
              "has_handshake_accepted": null,
              "has_handshake_offered": false,
              "id": null,
              "in_grade": 0,
              "in_grade_at_skill": 0,
              "total_bids": 0,
            },
          ],
          "id": 79,
          "position": Object {
            "bidcycle": Object {
              "name": "Demo BidCycle 2017-10-31 16:00:51.254762",
            },
            "bureau": "(AF) BUREAU OF AFRICAN AFFAIRS",
            "create_date": "2006-09-20",
            "grade": "04",
            "id": 84,
            "position_number": "56001600",
            "post": Object {
              "id": 195,
              "location": Object {
                "city": "Freetown",
                "code": "00A",
                "country": "Sierra Leone",
                "id": 103,
                "state": "",
              },
            },
            "skill": "SECURITY (2501)",
            "title": "SPECIAL AGENT",
            "update_date": "2017-06-08",
          },
        },
        "reviewer": Object {
          "email": "woodwardw@state.gov",
          "first_name": "Wendy",
          "is_cdo": false,
          "last_name": "Woodward",
          "phone_number": "555-555-5555",
          "username": "woodwardw",
        },
        "scheduled_panel_date": "2017-12-20",
        "status": "closed",
        "submitted_date": "2017-12-20",
        "update_date": "2017-12-20",
        "user": "rehmant",
      }
    }
    declineBid={[Function]}
    deleteBid={[Function]}
    isPriority={false}
    key="2"
    priorityExists={true}
    registerHandshake={[Function]}
    submitBid={[Function]}
    unregisterHandshake={[Function]}
    useCDOView={false}
    userProfile={
      Object {
        "bid_statistics": Array [
          Object {
            "draft": 1,
            "submitted": 1,
          },
        ],
        "cdo": Object {
          "email": "shadtrachl@state.gov",
          "first_name": "Leah",
          "initials": "LS",
          "last_name": "Shadtrach",
          "username": "shadtrachl",
        },
        "display_name": "John",
        "emp_id": "1",
        "employee_info": Object {
          "grade": "00",
          "skills": Array [
            Object {
              "code": "6218",
              "description": "CONSTRUCTION ENGINEERING",
            },
            Object {
              "code": "6211",
              "description": "COMPUTER SCIENCE",
            },
          ],
        },
        "employee_profile_url": Object {
          "external": "https://external.com",
          "internal": "https://internal.com",
        },
        "favorite_positions": Array [
          Object {
            "id": 1,
            "representation": "[00003026] OMS (COM) (Freetown, Sierra Leone)",
          },
          Object {
            "id": 4,
            "representation": "[00180000] OMS (DCM) (Addis Ababa, Ethiopia)",
          },
        ],
        "favorite_positions_pv": Array [
          Object {
            "id": 10,
          },
          Object {
            "id": 20,
          },
        ],
        "favorite_tandem_positions": Array [
          Object {
            "id": 1,
            "representation": "[00003026] OMS (COM) (Freetown, Sierra Leone)",
          },
          Object {
            "id": 4,
            "representation": "[00180000] OMS (DCM) (Addis Ababa, Ethiopia)",
          },
        ],
        "favorite_tandem_positions_pv": Array [
          Object {
            "id": 10,
          },
          Object {
            "id": 20,
          },
        ],
        "grade": "03",
        "id": 1,
        "initials": "JD",
        "is_cdo": false,
        "skills": Array [
          63,
          40,
        ],
        "user": Object {
          "email": "doej@state.gov",
          "first_name": "John",
          "initials": "JD",
          "last_name": "Doe",
          "username": "jdoe",
        },
        "user_info": Object {
          "office_address": "1234 Apple St. NW Washington, DC 20010",
          "office_phone": "202-876-5432",
        },
      }
    }
  />
</div>
`;