Skip to content

Commit

Permalink
Remove comment out test linter
Browse files Browse the repository at this point in the history
  • Loading branch information
codemist committed Dec 16, 2024
1 parent c912c6a commit 68575d2
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export const View = (props: Props) => {
const exposureStatus = getExposureStatus(
exposure,
props.enabledFeatureFlags.includes("AdditionalRemovalStatuses"),
// TODO: Waiting for criteria for data brokers under maintenace to be determined
// TODO: Waiting for criteria for data brokers under maintenance to be determined
// isDataBrokerUnderMaintenance(exposure),
);

Expand Down
3 changes: 3 additions & 0 deletions src/app/components/client/exposure_card/ExposureCard.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ describe("ScanResultCard", () => {

// TODO: Waiting for criteria for data brokers under maintenace to be determined
// Data broker removal under maintenance
// eslint-disable-next-line jest/no-commented-out-tests
// it("shows the right description for a scan result card with removal under maintenance status", () => {
// const ComposedProgressCard = composeStory(
// DataBrokerRemovalUnderMaintenance,
Expand All @@ -94,6 +95,7 @@ describe("ScanResultCard", () => {

// TODO: Waiting for criteria for data brokers under maintenace to be determined
// Data broker removal under maintenance resolved
// eslint-disable-next-line jest/no-commented-out-tests
// it("shows the right description for a scan result card with removal under maintenance status that's been resolved", () => {
// const ComposedProgressCard = composeStory(
// DataBrokerRemovalUnderMaintenanceFixed,
Expand Down Expand Up @@ -122,6 +124,7 @@ describe("ScanResultCard", () => {

// TODO: Waiting for criteria for data brokers under maintenace to be determined
// Data broker removal under maintenance
// eslint-disable-next-line jest/no-commented-out-tests
// it("shows the right description for a scan result card where removal is under maintenance", () => {
// const ComposedProgressCard = composeStory(
// DataBrokerRemovalUnderMaintenance,
Expand Down
5 changes: 3 additions & 2 deletions src/app/components/server/StatusPill.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const StatusPill = (props: Props) => {
props.exposure,
props.enabledFeatureFlags?.includes("AdditionalRemovalStatuses") ??
false,
// TODO: Waiting for criteria for data brokers under maintenace to be determined
// TODO: Waiting for criteria for data brokers under maintenance to be determined
// props.isRemovalUnderMaintenance || false,
);

Expand All @@ -56,7 +56,7 @@ export const StatusPill = (props: Props) => {
exposure: props.exposure,
pillType,
l10n,
// TODO: Waiting for criteria for data brokers under maintenace to be determined
// TODO: Waiting for criteria for data brokers under maintenance to be determined
// isDataBrokerUnderMaintenance: props.isRemovalUnderMaintenance,
})
: getStatusLabel({
Expand Down Expand Up @@ -119,6 +119,7 @@ export const getExposureStatus = (
return "fixed";
}

// TODO: Waiting for criteria for data brokers under maintenance to be determined
// if (isRemovalUnderMaintenance) {
// return "actionNeeded";
// }
Expand Down
6 changes: 3 additions & 3 deletions src/app/functions/server/dashboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,12 +204,12 @@ export function getDashboardSummary(
r.status === RemovalStatusMap.WaitingForVerification) &&
!isManuallyResolved;

// TODO: Waiting for criteria for data brokers under maintenace to be determined
// TODO: Waiting for criteria for data brokers under maintenance to be determined
// const isRemovalUnderMaintenance =
// r.broker_status === DataBrokerRemovalStatusMap.RemovalUnderMaintenance;

if (isInProgress) {
// TODO: Waiting for criteria for data brokers under maintenace to be determined
// TODO: Waiting for criteria for data brokers under maintenance to be determined
// if (!isRemovalUnderMaintenance) {
summary.dataBrokerInProgressNum++;
// }
Expand All @@ -234,7 +234,7 @@ export function getDashboardSummary(
summary.allDataPoints.familyMembers += r.relatives.length;

if (isInProgress) {
// TODO: Waiting for criteria for data brokers under maintenace to be determined
// TODO: Waiting for criteria for data brokers under maintenance to be determined
// if (!isRemovalUnderMaintenance) {
summary.inProgressDataPoints.emailAddresses += r.emails.length;
summary.inProgressDataPoints.phoneNumbers += r.phones.length;
Expand Down
1 change: 1 addition & 0 deletions src/app/functions/server/getRelevantGuidedSteps.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,7 @@ describe("getNextGuidedStep", () => {
});

// TODO: Waiting for criteria for data brokers under maintenace to be determined
// eslint-disable-next-line jest/no-commented-out-tests
// it("links to the removal under maintenance step if a user has scan resutls with a data broker that has a removal under maintenance status", () => {
// expect(
// getNextGuidedStep({
Expand Down

0 comments on commit 68575d2

Please sign in to comment.