mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
add process.env variables
This commit is contained in:
@@ -9,6 +9,14 @@ describe("NotificationService", () => {
|
|||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
repository = new UnoptimizedInMemoryRepository();
|
repository = new UnoptimizedInMemoryRepository();
|
||||||
notificationService = new NotificationService(repository);
|
notificationService = new NotificationService(repository);
|
||||||
|
|
||||||
|
// Ensure that tests don't hit the server
|
||||||
|
process.env = {
|
||||||
|
...process.env,
|
||||||
|
APNS_KEY_ID: "1",
|
||||||
|
APNS_TEAM_ID: "1",
|
||||||
|
APNS_KEY_PATH: "./dummy-path.p8"
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
describe("reloadAPNsTokenIfTimePassed", () => {
|
describe("reloadAPNsTokenIfTimePassed", () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user