MetaPhase-Consulting/State-TalentMAP

View on GitHub
src/Components/ProfileDashboard/UserProfile/__snapshots__/UserProfile.test.jsx.snap

Summary

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

exports[`UserProfileComponent matches snapshot 1`] = `
<div
  className="usa-grid-full current-user"
>
  <Connect(UserProfileGeneralInformation)
    colorProp="firstName"
    isPublic={false}
    showRedactedProfilePreview={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",
        },
        "current_assignment": Object {
          "end_date": "10-10-2018",
          "estimated_end_date": "10-10-2018",
          "position": Object {
            "bureau": "(NEA) BUREAU NEAR EASTERN AFFAIRS",
            "position_number": "58348065",
            "post": Object {
              "location": Object {
                "city": "Washington",
                "code": "500",
                "country": "United States",
                "id": 4,
                "state": "DC",
              },
            },
            "skill": "CONSTRUCTION ENGINEERING (6218)",
            "title": "PROJECT DIRECTOR",
          },
          "start_date": "10-10-2016",
        },
        "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
    className="current-user-bottom"
  >
    <UserProfileContactInformation
      showEditLink={true}
      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",
          },
          "current_assignment": Object {
            "end_date": "10-10-2018",
            "estimated_end_date": "10-10-2018",
            "position": Object {
              "bureau": "(NEA) BUREAU NEAR EASTERN AFFAIRS",
              "position_number": "58348065",
              "post": Object {
                "location": Object {
                  "city": "Washington",
                  "code": "500",
                  "country": "United States",
                  "id": 4,
                  "state": "DC",
                },
              },
              "skill": "CONSTRUCTION ENGINEERING (6218)",
              "title": "PROJECT DIRECTOR",
            },
            "start_date": "10-10-2016",
          },
          "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>
</div>
`;