Skip to content

Commit

Permalink
Update 7TV tests for spooky season
Browse files Browse the repository at this point in the history
  • Loading branch information
mkody committed Oct 9, 2024
1 parent 46ef1de commit b52d799
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/63071b80942ffb69e13d700f/3x.webp');
expect(emote.toLink(2)).toBe('https://cdn.7tv.app/emote/61525bba20eaf897465aab47/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/63071b80942ffb69e13d700f/1x.webp "EZ") in it.');
expect(text).toBe('This is a test string with ![EZ](https://cdn.7tv.app/emote/61525bba20eaf897465aab47/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/62fc0a0c4a75fd54bd3520a9/3x.avif');
expect(emote.toLink(2)).toBe('https://cdn.7tv.app/emote/634885e1e417daf82c4d7247/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/62fc0a0c4a75fd54bd3520a9/1x.avif "Clap") in it.');
expect(text).toBe('This is a test string with ![Clap](https://cdn.7tv.app/emote/634885e1e417daf82c4d7247/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": "63071b80942ffb69e13d700f",
"id": "61525bba20eaf897465aab47",
"imageType": "avif",
"ownerName": "Kh4N_02",
"ownerName": "PsycloneTM",
"sizes": [
"1x.avif",
"2x.avif",
Expand Down

0 comments on commit b52d799

Please sign in to comment.