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

Commit

Permalink
test: add tests for banners
Browse files Browse the repository at this point in the history
  • Loading branch information
iShibi committed Oct 11, 2021
1 parent e0f3d11 commit 9aa59d8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/rest/__tests__/CDN.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@ test('banner default', () => {
expect(cdn.banner(id, hash)).toBe(`${base}/banners/${id}/${hash}.png`);
});

test('banner dynamic-animated', () => {
expect(cdn.banner(id, animatedHash, { dynamic: true })).toBe(`${base}/banners/${id}/${animatedHash}.gif`);
});

test('banner dynamic-not-animated', () => {
expect(cdn.banner(id, hash, { dynamic: true })).toBe(`${base}/banners/${id}/${hash}.png`);
});

test('channelIcon default', () => {
expect(cdn.channelIcon(id, hash)).toBe(`${base}/channel-icons/${id}/${hash}.png`);
});
Expand Down

0 comments on commit 9aa59d8

Please sign in to comment.