Skip to content

Commit

Permalink
E2E fix
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewsignori-aot committed Jan 15, 2025
1 parent aa1ab75 commit 76a1421
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ describe(
]);
expect(
mockedJob.containLogMessages([
`Ministry Blocked Disbursement notification created for disbursement ID ${disbursement.id}.`,
`Ministry Blocked Disbursement notification should not be created at this moment for disbursement ID ${disbursement.id}.`,
`Student Blocked Disbursement notification created for disbursement ID ${disbursement.id}.`,
]),
).toBe(true);
Expand All @@ -345,8 +345,8 @@ describe(
dateSent: IsNull(),
},
});
// Checking 1 created notification for the student and 1 notification for the ministry.
expect(notificationsCount).toBe(2);
// Checking 1 created notification for the student only.
expect(notificationsCount).toBe(1);
});

it("Should create an e-Cert with one disbursement record for one student with one eligible schedule.", async () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { Injectable } from "@nestjs/common";
import { ProcessSummary } from "@sims/utilities/logger";
import { EntityManager } from "typeorm";
import { MinistryBlockedDisbursementNotification } from "./blocked-disbursement/ministry-blocked-disbursement-notification";
import { StudentBlockedDisbursementNotification } from "./blocked-disbursement/student-blocked-disbursement-notification";
import { EligibleECertDisbursement } from "../disbursement-schedule.models";
import {
MinistryBlockedDisbursementNotification,
StudentBlockedDisbursementNotification,
} from ".";

@Injectable()
export class ECertNotificationService {
Expand Down

0 comments on commit 76a1421

Please sign in to comment.