Skip to content

Commit

Permalink
test: consistency in names
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiralite committed Jul 27, 2022
1 parent 36d1c15 commit 5353eeb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/builders/__tests__/messages/formatters.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,21 +159,21 @@ describe('Message formatters', () => {
);
});

test('GIVEN channelId WITH guildId THEN returns "https://discord.com/channels/987654321987654/123456789012345678"', () => {
test('GIVEN channelId WITH guildId THEN returns "https://discord.com/channels/${guildId}/${channelId}"', () => {
expect<'https://discord.com/channels/987654321987654/123456789012345678'>(
channelLink('123456789012345678', '987654321987654'),
).toEqual('https://discord.com/channels/987654321987654/123456789012345678');
});
});

describe('messageLink', () => {
test('GIVEN channelId AND messageId THEN returns "`https://discord.com/channels/@me/123456789012345678/102938475657483"', () => {
test('GIVEN channelId AND messageId THEN returns "https://discord.com/channels/@me/${channelId}/${messageId}"', () => {
expect<'https://discord.com/channels/@me/123456789012345678/102938475657483'>(
messageLink('123456789012345678', '102938475657483'),
).toEqual('https://discord.com/channels/@me/123456789012345678/102938475657483');
});

test('GIVEN channelId AND messageId WITH guildId THEN returns "https://discord.com/channels/987654321987654/123456789012345678/102938475657483"', () => {
test('GIVEN channelId AND messageId WITH guildId THEN returns "https://discord.com/channels/${guildId}/${channelId}/${messageId}"', () => {
expect<'https://discord.com/channels/987654321987654/123456789012345678/102938475657483'>(
messageLink('123456789012345678', '102938475657483', '987654321987654'),
).toEqual('https://discord.com/channels/987654321987654/123456789012345678/102938475657483');
Expand Down

0 comments on commit 5353eeb

Please sign in to comment.