Skip to content

Commit

Permalink
refactor: add a line before complted
Browse files Browse the repository at this point in the history
  • Loading branch information
tejaskh3 committed Apr 25, 2024
1 parent 208cf05 commit d1c34d9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/utils/sendTaskUpdates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export async function sendTaskUpdate(
const taskUrl = config(env).RDS_STATUS_SITE_URL + `/tasks/${taskId}`;
const formattedString =
`${userName} added an update to their task: <${taskUrl}>\n` +
`**Completed**\n${completed}\n\n` +
`\n**Completed**\n${completed}\n\n` +
`**Planned**\n${planned}\n\n` +
`**Blockers**\n${blockers}`;
const bodyObj = {
Expand Down
14 changes: 7 additions & 7 deletions tests/unit/utils/sendTasksUpdates.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe("sendTaskUpdate function", () => {
const url = config(mockEnv).TRACKING_CHANNEL_URL;
const formattedString =
`${userName} added an update to their task: <${taskUrl}>\n` +
`**Completed**\n${completed}\n\n` +
`\n**Completed**\n${completed}\n\n` +
`**Planned**\n${planned}\n\n` +
`**Blockers**\n${blockers}`;
const bodyObj = {
Expand All @@ -56,7 +56,7 @@ describe("sendTaskUpdate function", () => {
const url = config(mockEnv).TRACKING_CHANNEL_URL;
const formattedString =
`${userName} added an update to their task: <${taskUrl}>\n` +
`**Completed**\n${completed}\n\n` +
`\n**Completed**\n${completed}\n\n` +
`**Planned**\n\n\n` +
`**Blockers**\n`;
const bodyObj = {
Expand All @@ -76,7 +76,7 @@ describe("sendTaskUpdate function", () => {
const url = config(mockEnv).TRACKING_CHANNEL_URL;
const formattedString =
`${userName} added an update to their task: <${taskUrl}>\n` +
`**Completed**\n\n\n` +
`\n**Completed**\n\n\n` +
`**Planned**\n${planned}\n\n` +
`**Blockers**\n`;
const bodyObj = {
Expand All @@ -96,7 +96,7 @@ describe("sendTaskUpdate function", () => {
const url = config(mockEnv).TRACKING_CHANNEL_URL;
const formattedString =
`${userName} added an update to their task: <${taskUrl}>\n` +
`**Completed**\n\n\n` +
`\n**Completed**\n\n\n` +
`**Planned**\n\n\n` +
`**Blockers**\n${blockers}`;
const bodyObj = {
Expand All @@ -116,7 +116,7 @@ describe("sendTaskUpdate function", () => {
const url = config(mockEnv).TRACKING_CHANNEL_URL;
const formattedString =
`${userName} added an update to their task: <${taskUrl}>\n` +
`**Completed**\n${completed}\n\n` +
`\n**Completed**\n${completed}\n\n` +
`**Planned**\n${planned}\n\n` +
`**Blockers**\n`;
const bodyObj = {
Expand All @@ -136,7 +136,7 @@ describe("sendTaskUpdate function", () => {
const url = config(mockEnv).TRACKING_CHANNEL_URL;
const formattedString =
`${userName} added an update to their task: <${taskUrl}>\n` +
`**Completed**\n${completed}\n\n` +
`\n**Completed**\n${completed}\n\n` +
`**Planned**\n\n\n` +
`**Blockers**\n${blockers}`;
const bodyObj = {
Expand All @@ -156,7 +156,7 @@ describe("sendTaskUpdate function", () => {
const url = config(mockEnv).TRACKING_CHANNEL_URL;
const formattedString =
`${userName} added an update to their task: <${taskUrl}>\n` +
`**Completed**\n\n\n` +
`\n**Completed**\n\n\n` +
`**Planned**\n${planned}\n\n` +
`**Blockers**\n${blockers}`;
const bodyObj = {
Expand Down

0 comments on commit d1c34d9

Please sign in to comment.