about summary refs log tree commit diff
path: root/__tests__
diff options
context:
space:
mode:
authorHailey <153161762+haileyok@users.noreply.github.com>2024-01-08 13:55:48 -0800
committerGitHub <noreply@github.com>2024-01-08 13:55:48 -0800
commit928a626c2e82eb2663e16800a87b1c34c0ab83d5 (patch)
tree7c107a15b1bcce4a8554eeed6abfa1a98b7a9cb3 /__tests__
parent9eeff2cc5ca6c05dee8c191f33dbbb4b7a4bd482 (diff)
downloadvoidsky-928a626c2e82eb2663e16800a87b1c34c0ab83d5.tar.zst
support intl tenor links (#2438)
* support intl tenor links

* update test cases
Diffstat (limited to '__tests__')
-rw-r--r--__tests__/lib/string.test.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/__tests__/lib/string.test.ts b/__tests__/lib/string.test.ts
index 89df7a6bd..edddcb3e0 100644
--- a/__tests__/lib/string.test.ts
+++ b/__tests__/lib/string.test.ts
@@ -455,6 +455,7 @@ describe('parseEmbedPlayerFromUrl', () => {
     'https://tenor.com/notView/gifId',
     'https://tenor.com/view',
     'https://tenor.com/view/gifId.gif',
+    'https://tenor.com/intl/view/gifId.gif',
   ]
 
   const outputs = [
@@ -742,6 +743,13 @@ describe('parseEmbedPlayerFromUrl', () => {
       hideDetails: true,
       playerUri: 'https://tenor.com/view/gifId.gif',
     },
+    {
+      type: 'tenor_gif',
+      source: 'tenor',
+      isGif: true,
+      hideDetails: true,
+      playerUri: 'https://tenor.com/intl/view/gifId.gif',
+    },
   ]
 
   it('correctly grabs the correct id from uri', () => {