Skip to content

Commit 964ed31

Browse files
committed
chore: add cdn test
1 parent 12874cc commit 964ed31

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/rest/__tests__/CDN.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,11 @@ test('soundboardSound', () => {
134134
expect(cdn.soundboardSound(id)).toEqual(`${baseCDN}/soundboard-sounds/${id}`);
135135
});
136136

137+
test('guildTagBadge', () => {
138+
expect(cdn.guildTagBadge(id, hash)).toEqual(`${baseCDN}/guild-tag-badges/${id}/${hash}.webp`);
139+
});
140+
137141
test('makeURL throws on invalid size', () => {
138-
// @ts-expect-error: Invalid size
139142
expect(() => cdn.avatar(id, animatedHash, { size: 5 })).toThrow(RangeError);
140143
});
141144

0 commit comments

Comments
 (0)