MetaPhase-Consulting/State-TalentMAP

View on GitHub
src/Components/ResultsCondensedCard/__snapshots__/ResultsCondensedCard.test.jsx.snap

Summary

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

exports[`ResultsCondensedCardComponent matches snapshot 1`] = `
<BoxShadow
  blurRadius={10}
  className="usa-grid-full condensed-card-inner"
  color="rgba(0,0,0,.15)"
  inset={false}
  is="div"
  offsetX={3}
  offsetY={2}
  spreadRadius={1}
  style={Object {}}
>
  <ResultsCondensedCardTop
    isProjectedVacancy={false}
    isRecentlyAvailable={false}
    isTandem={false}
    position={
      Object {
        "bidcycle": Object {
          "name": "Bid Cycle 1",
        },
        "id": 1,
        "position": Object {
          "bid_statistics": Array [
            Object {
              "at_skill": 0,
              "bidcycle": "Demo BidCycle 2018-03-13 15:51:10.980576+00:00",
              "id": 6,
              "in_grade": 0,
              "in_grade_at_skill": 0,
              "total_bids": 2,
            },
          ],
          "bureau": "(AF) BUREAU OF AFRICAN AFFAIRS",
          "classifications": Array [],
          "create_date": "2006-09-20T00:00:00Z",
          "current_assignment": Object {
            "estimated_end_date": "2020-03-13T15:51:11.478084Z",
            "start_date": "2018-03-13T15:51:11.478084Z",
            "status": "active",
            "tour_of_duty": "2 YRS (2 R & R)",
            "user": "John Doe",
          },
          "description": Object {
            "content": "The Office Management Specialist (OMS) for the Deputy Chief of Mission (DCM) provides office management services in this Mission of six agencies, 387 American and Locally Employed Staff (LES) positions, and 279 guard force contractors.  The OMS manages Executive Office operations and positionstains the DCM’s calendar in support of overall Mission goals and objectives.  The OMS (DCM) drafts routine correspondence, memoranda and cables as appropriate and ensures documents are cleared and delivered in a timely fashion. The OMS serves as back up to the Ambassador’s OMS.  POCs areSandra McInturff, DCM OMS, McInturffSL@state.gov, 231-77-677-7000, ext. 7452; Samue Watson, DCM, WatsonSR@state.gov, 231-77-677-7000, ext. 7452. Please submit lobbying documents to the 360 Community Lobbying Center http://appcenter.state.sbu/CLC. (Revised 1/2017)

",
            "date_created": "2018-03-08T18:00:33.241370Z",
            "date_updated": "2018-03-13T15:55:00.018644Z",
            "id": 90,
            "is_editable_by_user": false,
            "last_editing_user": null,
            "point_of_contact": null,
            "website": null,
          },
          "effective_date": "2012-10-22T00:00:00Z",
          "grade": "06",
          "id": 6,
          "is_highlighted": false,
          "is_overseas": true,
          "languages": Array [],
          "latest_bidcycle": Object {
            "active": true,
            "cycle_deadline_date": "2018-04-13T15:51:10.980554Z",
            "cycle_end_date": "2018-06-13T15:51:10.980554Z",
            "cycle_start_date": "2017-12-13T15:51:10.980554Z",
            "id": 1,
            "name": "Demo BidCycle 2018-03-13 15:51:10.980576+00:00",
          },
          "organization": "(MONROVIA) MONROVIA LIBERIA",
          "position_number": "10034001",
          "post": Object {
            "code": "LI6000000",
            "cost_of_living_adjustment": 30,
            "danger_pay": 0,
            "differential_rate": 30,
            "has_consumable_allowance": true,
            "has_service_needs_differential": true,
            "id": 160,
            "location": Object {
              "city": "Freetown",
              "code": "00A",
              "country": "Sierra Leone",
              "id": 103,
              "state": "",
            },
            "obc_id": 1,
            "rest_relaxation_point": "Paris",
            "tour_of_duty": "2 YRS (2 R & R)",
          },
          "posted_date": "2012-10-22T00:00:00Z",
          "representation": "[10034001] OMS (DCM) (Monrovia, Liberia)",
          "skill": "OFFICE MANAGEMENT (9017)",
          "status": null,
          "status_code": null,
          "title": "OMS (DCM)",
          "tour_of_duty": null,
          "update_date": "2017-06-08T00:00:00Z",
        },
      }
    }
    type="default"
  />
  <ResultsCondensedCardBottom
    bidList={
      Array [
        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",
        },
        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",
        },
        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",
        },
      ]
    }
    favorites={Array []}
    favoritesPV={Array []}
    favoritesPVTandem={Array []}
    favoritesTandem={Array []}
    isProjectedVacancy={false}
    isTandem={false}
    limit={15}
    page={1}
    position={
      Object {
        "bidcycle": Object {
          "name": "Bid Cycle 1",
        },
        "id": 1,
        "position": Object {
          "bid_statistics": Array [
            Object {
              "at_skill": 0,
              "bidcycle": "Demo BidCycle 2018-03-13 15:51:10.980576+00:00",
              "id": 6,
              "in_grade": 0,
              "in_grade_at_skill": 0,
              "total_bids": 2,
            },
          ],
          "bureau": "(AF) BUREAU OF AFRICAN AFFAIRS",
          "classifications": Array [],
          "create_date": "2006-09-20T00:00:00Z",
          "current_assignment": Object {
            "estimated_end_date": "2020-03-13T15:51:11.478084Z",
            "start_date": "2018-03-13T15:51:11.478084Z",
            "status": "active",
            "tour_of_duty": "2 YRS (2 R & R)",
            "user": "John Doe",
          },
          "description": Object {
            "content": "The Office Management Specialist (OMS) for the Deputy Chief of Mission (DCM) provides office management services in this Mission of six agencies, 387 American and Locally Employed Staff (LES) positions, and 279 guard force contractors.  The OMS manages Executive Office operations and positionstains the DCM’s calendar in support of overall Mission goals and objectives.  The OMS (DCM) drafts routine correspondence, memoranda and cables as appropriate and ensures documents are cleared and delivered in a timely fashion. The OMS serves as back up to the Ambassador’s OMS.  POCs areSandra McInturff, DCM OMS, McInturffSL@state.gov, 231-77-677-7000, ext. 7452; Samue Watson, DCM, WatsonSR@state.gov, 231-77-677-7000, ext. 7452. Please submit lobbying documents to the 360 Community Lobbying Center http://appcenter.state.sbu/CLC. (Revised 1/2017)

",
            "date_created": "2018-03-08T18:00:33.241370Z",
            "date_updated": "2018-03-13T15:55:00.018644Z",
            "id": 90,
            "is_editable_by_user": false,
            "last_editing_user": null,
            "point_of_contact": null,
            "website": null,
          },
          "effective_date": "2012-10-22T00:00:00Z",
          "grade": "06",
          "id": 6,
          "is_highlighted": false,
          "is_overseas": true,
          "languages": Array [],
          "latest_bidcycle": Object {
            "active": true,
            "cycle_deadline_date": "2018-04-13T15:51:10.980554Z",
            "cycle_end_date": "2018-06-13T15:51:10.980554Z",
            "cycle_start_date": "2017-12-13T15:51:10.980554Z",
            "id": 1,
            "name": "Demo BidCycle 2018-03-13 15:51:10.980576+00:00",
          },
          "organization": "(MONROVIA) MONROVIA LIBERIA",
          "position_number": "10034001",
          "post": Object {
            "code": "LI6000000",
            "cost_of_living_adjustment": 30,
            "danger_pay": 0,
            "differential_rate": 30,
            "has_consumable_allowance": true,
            "has_service_needs_differential": true,
            "id": 160,
            "location": Object {
              "city": "Freetown",
              "code": "00A",
              "country": "Sierra Leone",
              "id": 103,
              "state": "",
            },
            "obc_id": 1,
            "rest_relaxation_point": "Paris",
            "tour_of_duty": "2 YRS (2 R & R)",
          },
          "posted_date": "2012-10-22T00:00:00Z",
          "representation": "[10034001] OMS (DCM) (Monrovia, Liberia)",
          "skill": "OFFICE MANAGEMENT (9017)",
          "status": null,
          "status_code": null,
          "title": "OMS (DCM)",
          "tour_of_duty": null,
          "update_date": "2017-06-08T00:00:00Z",
        },
      }
    }
    refreshFavorites={false}
    showBidCount={true}
    showBidListButton={false}
    showCompareButton={false}
    sortType={null}
    type="default"
    useShortFavButton={false}
  />
  <ResultsCondensedCardFooter
    isProjectedVacancy={false}
    isTandem={false}
    position={
      Object {
        "bidcycle": Object {
          "name": "Bid Cycle 1",
        },
        "id": 1,
        "position": Object {
          "bid_statistics": Array [
            Object {
              "at_skill": 0,
              "bidcycle": "Demo BidCycle 2018-03-13 15:51:10.980576+00:00",
              "id": 6,
              "in_grade": 0,
              "in_grade_at_skill": 0,
              "total_bids": 2,
            },
          ],
          "bureau": "(AF) BUREAU OF AFRICAN AFFAIRS",
          "classifications": Array [],
          "create_date": "2006-09-20T00:00:00Z",
          "current_assignment": Object {
            "estimated_end_date": "2020-03-13T15:51:11.478084Z",
            "start_date": "2018-03-13T15:51:11.478084Z",
            "status": "active",
            "tour_of_duty": "2 YRS (2 R & R)",
            "user": "John Doe",
          },
          "description": Object {
            "content": "The Office Management Specialist (OMS) for the Deputy Chief of Mission (DCM) provides office management services in this Mission of six agencies, 387 American and Locally Employed Staff (LES) positions, and 279 guard force contractors.  The OMS manages Executive Office operations and positionstains the DCM’s calendar in support of overall Mission goals and objectives.  The OMS (DCM) drafts routine correspondence, memoranda and cables as appropriate and ensures documents are cleared and delivered in a timely fashion. The OMS serves as back up to the Ambassador’s OMS.  POCs areSandra McInturff, DCM OMS, McInturffSL@state.gov, 231-77-677-7000, ext. 7452; Samue Watson, DCM, WatsonSR@state.gov, 231-77-677-7000, ext. 7452. Please submit lobbying documents to the 360 Community Lobbying Center http://appcenter.state.sbu/CLC. (Revised 1/2017)

",
            "date_created": "2018-03-08T18:00:33.241370Z",
            "date_updated": "2018-03-13T15:55:00.018644Z",
            "id": 90,
            "is_editable_by_user": false,
            "last_editing_user": null,
            "point_of_contact": null,
            "website": null,
          },
          "effective_date": "2012-10-22T00:00:00Z",
          "grade": "06",
          "id": 6,
          "is_highlighted": false,
          "is_overseas": true,
          "languages": Array [],
          "latest_bidcycle": Object {
            "active": true,
            "cycle_deadline_date": "2018-04-13T15:51:10.980554Z",
            "cycle_end_date": "2018-06-13T15:51:10.980554Z",
            "cycle_start_date": "2017-12-13T15:51:10.980554Z",
            "id": 1,
            "name": "Demo BidCycle 2018-03-13 15:51:10.980576+00:00",
          },
          "organization": "(MONROVIA) MONROVIA LIBERIA",
          "position_number": "10034001",
          "post": Object {
            "code": "LI6000000",
            "cost_of_living_adjustment": 30,
            "danger_pay": 0,
            "differential_rate": 30,
            "has_consumable_allowance": true,
            "has_service_needs_differential": true,
            "id": 160,
            "location": Object {
              "city": "Freetown",
              "code": "00A",
              "country": "Sierra Leone",
              "id": 103,
              "state": "",
            },
            "obc_id": 1,
            "rest_relaxation_point": "Paris",
            "tour_of_duty": "2 YRS (2 R & R)",
          },
          "posted_date": "2012-10-22T00:00:00Z",
          "representation": "[10034001] OMS (DCM) (Monrovia, Liberia)",
          "skill": "OFFICE MANAGEMENT (9017)",
          "status": null,
          "status_code": null,
          "title": "OMS (DCM)",
          "tour_of_duty": null,
          "update_date": "2017-06-08T00:00:00Z",
        },
      }
    }
  />
</BoxShadow>
`;