Skip to content

Commit 541fef4

Browse files
committed
Revert "never gonna give you up"
This reverts commit ef1edbd.
1 parent 222b6ab commit 541fef4

File tree

5 files changed

+4
-10
lines changed

5 files changed

+4
-10
lines changed

src/bot/__tests__/requestReview.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ describe('requestReview', () => {
350350
expect(param.ack).toBeCalled();
351351
});
352352

353-
it.skip('should post a message to the interviewing channel', async () => {
353+
it('should post a message to the interviewing channel', async () => {
354354
const { param } = await callCallback();
355355

356356
expect(param.client.chat.postMessage).toBeCalledWith({

src/bot/requestReview.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { QueueService } from '@services';
66
import { App, Block, KnownBlock, PlainTextOption, View } from '@slack/bolt';
77
import { blockUtils } from '@utils/blocks';
88
import log from '@utils/log';
9-
import { bold, codeBlock, compose, italic, mention, ul, link } from '@utils/text';
9+
import { bold, codeBlock, compose, italic, mention, ul } from '@utils/text';
1010
import { PendingReviewer } from '@models/ActiveReview';
1111
import { ActionId, Deadline, DeadlineLabel, Interaction } from './enums';
1212
import { chatService } from '@/services/ChatService';
@@ -216,7 +216,6 @@ export const requestReview = {
216216
)} has requested ${numberOfReviewersValue} reviews for a HackerRank done in the following languages:`,
217217
ul(...languages),
218218
bold(`The review is needed by end of day ${deadlineDisplay}`),
219-
link('AI-Powered Plagiarism Review', 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'),
220219
candidateIdentifierValue ? italic(`Candidate Identifier: ${candidateIdentifierValue}`) : '',
221220
),
222221
);

src/services/__tests__/ChatService.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ describe('ChatService', () => {
5757
});
5858
});
5959

60-
describe.skip('sendRequestReviewMessage', () => {
60+
describe('sendRequestReviewMessage', () => {
6161
it('should notify the given user that a request is ready for them to review', async () => {
6262
const client = buildMockWebClient();
6363
client.chat.postMessage = jest.fn().mockResolvedValue({

src/utils/RequestBuilder.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { ActionId, BlockId } from '@bot/enums';
2-
import { bold, compose, link, mention, ul } from '@utils/text';
2+
import { bold, compose, mention, ul } from '@utils/text';
33
import { ActionsBlock, Block } from '@slack/bolt';
44
import { SectionBlock } from '@slack/types';
55

@@ -47,7 +47,6 @@ export const requestBuilder = {
4747
)} has requested a HackerRank review done in the following languages:`,
4848
ul(...languages),
4949
bold(`The review is needed by end of day ${deadlineDisplay}`),
50-
link('AI-Powered Plagiarism Review', 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'),
5150
),
5251
},
5352
};

src/utils/text.ts

-4
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ export function li(...items: string[]): string {
2020
return items.map((item, index) => ` ${index + 1}. ${item}`).join('\n');
2121
}
2222

23-
export function link(linkText: string, url: string) {
24-
return `<${url}|${linkText}>`;
25-
}
26-
2723
export function codeBlock(...lines: string[]): string {
2824
return ['```', ...lines, '```'].join('\n');
2925
}

0 commit comments

Comments
 (0)