File tree Expand file tree Collapse file tree 3 files changed +25
-2
lines changed Expand file tree Collapse file tree 3 files changed +25
-2
lines changed Original file line number Diff line number Diff line change 11export interface env {
2- [ key : string ] : string ;
2+ CURRENT_ENVIRONMENT : string ;
3+ DISCORD_APPLICATION_ID : string ;
4+ DISCORD_GUILD_ID : string ;
5+ DISCORD_TOKEN : string ;
6+ DISCORD_PUBLIC_KEY : string ;
7+ CLOUDFLARE_API_TOKEN : string ;
8+ CLOUDFLARE_ACCOUNT_ID : string ;
9+ BOT_PRIVATE_KEY : string ;
10+ RDS_SERVERLESS_PUBLIC_KEY : string ;
11+ CRON_JOBS_PUBLIC_KEY : string ;
12+ IDENTITY_SERVICE_PUBLIC_KEY : string ;
313}
414
515
Original file line number Diff line number Diff line change 1+ export const mockEnv = {
2+ CURRENT_ENVIRONMENT : "mockEnvironment" ,
3+ DISCORD_APPLICATION_ID : "mockDiscordApplicationId" ,
4+ DISCORD_GUILD_ID : "mockDiscordGuildId" ,
5+ DISCORD_TOKEN : "mockDiscordToken" ,
6+ DISCORD_PUBLIC_KEY : "mockDiscordPublicKey" ,
7+ CLOUDFLARE_API_TOKEN : "mockCloudfareAPIToken" ,
8+ CLOUDFLARE_ACCOUNT_ID : "mockCloudfareAccountId" ,
9+ BOT_PRIVATE_KEY : "mockBotPrivateKey" ,
10+ RDS_SERVERLESS_PUBLIC_KEY : "mockRDSServerlessPublicKey" ,
11+ CRON_JOBS_PUBLIC_KEY : "mockCronJobsPublicKey" ,
12+ IDENTITY_SERVICE_PUBLIC_KEY : "mockIdentityServicePublicKey"
13+ }
Original file line number Diff line number Diff line change 11import config from "../../../config/config" ;
22import JSONResponse from "../../../src/utils/JsonResponse" ;
33import { sendTaskUpdate } from "../../../src/utils/sendTaskUpdates" ;
4+ import { mockEnv } from "../mockEnv" ;
45
56describe ( "sendTaskUpdate function" , ( ) => {
6- const mockEnv = { DISCORD_TOKEN : "mockToken" } ;
77 const completed = "Task completed successfully" ;
88 const planned = "Plan for the next phase" ;
99 const blockers = "No blockers" ;
You can’t perform that action at this time.
0 commit comments