Skip to content
This repository was archived by the owner on Jan 8, 2022. It is now read-only.

Commit 9aa59d8

Browse files
committed
test: add tests for banners
1 parent e0f3d11 commit 9aa59d8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/rest/__tests__/CDN.test.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ test('banner default', () => {
3232
expect(cdn.banner(id, hash)).toBe(`${base}/banners/${id}/${hash}.png`);
3333
});
3434

35+
test('banner dynamic-animated', () => {
36+
expect(cdn.banner(id, animatedHash, { dynamic: true })).toBe(`${base}/banners/${id}/${animatedHash}.gif`);
37+
});
38+
39+
test('banner dynamic-not-animated', () => {
40+
expect(cdn.banner(id, hash, { dynamic: true })).toBe(`${base}/banners/${id}/${hash}.png`);
41+
});
42+
3543
test('channelIcon default', () => {
3644
expect(cdn.channelIcon(id, hash)).toBe(`${base}/channel-icons/${id}/${hash}.png`);
3745
});

0 commit comments

Comments
 (0)