rename methods for clarity

This commit is contained in:
2025-02-02 13:49:59 -08:00
parent 62b040fccd
commit 88ab399c11
2 changed files with 6 additions and 6 deletions

View File

@@ -3,15 +3,15 @@ import { GetterRepository } from "../repositories/GetterRepository";
export class NotificationService { export class NotificationService {
constructor(private repository: GetterRepository) {} constructor(private repository: GetterRepository) {}
public startListeningForNotification() { public scheduleNotification() {
} }
public stopListeningForNotification() { public cancelNotification() {
} }
public stopListeningForAllNotifications() { public cancelAllNotifications() {
} }

View File

@@ -11,7 +11,7 @@ describe("NotificationService", () => {
}); });
}); });
describe("startListeningForNotification", () => { describe("scheduleNotification", () => {
it("sends a notification to given shuttle/stop ID when changed", async () => { it("sends a notification to given shuttle/stop ID when changed", async () => {
}); });
@@ -21,13 +21,13 @@ describe("NotificationService", () => {
}); });
}); });
describe("stopListeningForNotification", () => { describe("cancelNotification", () => {
it("stops notification from sending to given shuttle/stop ID", async () => { it("stops notification from sending to given shuttle/stop ID", async () => {
}); });
}); });
describe("stopListeningForAllNotifications", () => { describe("cancelAllNotifications", () => {
it("clears all notifications scheduled to be sent", async () => { it("clears all notifications scheduled to be sent", async () => {
}); });