mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 16:00:32 +00:00
rename methods for clarity
This commit is contained in:
@@ -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() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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 () => {
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user