Skip to content

Commit

Permalink
Xmas emotes for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mkody committed Dec 24, 2024
1 parent 2015586 commit 0a1e124
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions test/SevenTV.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ describe('Test 7TV emotes', () => {

test('Get emote (EZ)', () => {
const emote = emoteFetcher.emotes.get('EZ');
expect(emote.toLink(2)).toBe('https://cdn.7tv.app/emote/01GB9W6V0000098BZVD7GKTW0F/3x.webp');
expect(emote.toLink(2)).toBe('https://cdn.7tv.app/emote/01GCVYNF0G000D8RDSXFWM2E0J/3x.webp');
});

test('Parse string with emote (EZ)', () => {
const text = emoteParser.parse('This is a test string with :EZ: in it.');
expect(text).toBe('This is a test string with ![EZ](https://cdn.7tv.app/emote/01GB9W6V0000098BZVD7GKTW0F/1x.webp "EZ") in it.');
expect(text).toBe('This is a test string with ![EZ](https://cdn.7tv.app/emote/01GCVYNF0G000D8RDSXFWM2E0J/1x.webp "EZ") in it.');
});
});

Expand All @@ -37,12 +37,12 @@ describe('Test 7TV emotes', () => {

test('Get emote (Clap)', () => {
const emote = emoteFetcher.emotes.get('Clap');
expect(emote.toLink(2)).toBe('https://cdn.7tv.app/emote/01GAM8EFQ00004MXFXAJYKA859/3x.avif');
expect(emote.toLink(2)).toBe('https://cdn.7tv.app/emote/01GHE0JD4G000AV9TSJ0TJ6D67/3x.avif');
});

test('Parse string with emote (Clap)', () => {
const text = emoteParser.parse('This is a test string with :Clap: in it.');
expect(text).toBe('This is a test string with ![Clap](https://cdn.7tv.app/emote/01GAM8EFQ00004MXFXAJYKA859/1x.avif "Clap") in it.');
expect(text).toBe('This is a test string with ![Clap](https://cdn.7tv.app/emote/01GHE0JD4G000AV9TSJ0TJ6D67/1x.avif "Clap") in it.');
});
});

Expand Down
4 changes: 2 additions & 2 deletions test/__snapshots__/ToFromObject.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ exports[`Test toObject 7TV Global Emote (AVIF) 1`] = `
"animated": false,
"channel_id": null,
"code": "EZ",
"id": "01GB9W6V0000098BZVD7GKTW0F",
"id": "01GCVYNF0G000D8RDSXFWM2E0J",
"imageType": "avif",
"ownerName": "Kh4N_02",
"ownerName": "TrippyColour",
"sizes": [
"1x.avif",
"2x.avif",
Expand Down

0 comments on commit 0a1e124

Please sign in to comment.