mirror of
https://github.com/flutter/holobooth.git
synced 2025-08-24 07:01:02 +08:00
fix: allowing gif on the sharing (#425)
This commit is contained in:
@ -38,7 +38,7 @@ describe('Share API', () => {
|
||||
|
||||
test('Invalid file extension returns 404 and html', async () => {
|
||||
const req = Object.assign({}, baseReq, {
|
||||
path: 'wrong.gif',
|
||||
path: 'wrong.mp3',
|
||||
});
|
||||
const res = await getShareResponse(req);
|
||||
expect(res.status).toEqual(404);
|
||||
|
@ -14,7 +14,7 @@ import portalAnimationControllerTmpl from './templates/portal-animation-controll
|
||||
import gaTmpl from './templates/ga';
|
||||
|
||||
|
||||
const VALID_VIDEO_EXT = [ '.mp4' ];
|
||||
const VALID_VIDEO_EXT = [ '.mp4', '.gif' ];
|
||||
|
||||
const BaseHTMLContext: Record<string, string | Record<string, string>> = {
|
||||
appUrl: '',
|
||||
|
Reference in New Issue
Block a user