MM-62426: Remove form-data from @mattermost/client (#29792)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
0c213eae9e
Коммит
95b22f47a0
@@ -13,6 +13,7 @@ exports[`component/PDFPreview should match snapshot, not successful 1`] = `
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "client_id",
|
||||
"create_at": 1,
|
||||
"delete_at": 1,
|
||||
|
||||
@@ -19,6 +19,7 @@ exports[`AudioVideoPreview should match snapshot, cannot play 1`] = `
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "client_id",
|
||||
"create_at": 1,
|
||||
"delete_at": 1,
|
||||
|
||||
@@ -18,6 +18,7 @@ exports[`FileAttachment should match snapshot, after change from file to image 1
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "",
|
||||
"create_at": 0,
|
||||
"delete_at": 0,
|
||||
@@ -67,6 +68,7 @@ exports[`FileAttachment should match snapshot, after change from file to image 1
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "",
|
||||
"create_at": 0,
|
||||
"delete_at": 0,
|
||||
@@ -112,6 +114,7 @@ exports[`FileAttachment should match snapshot, regular file 1`] = `
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "",
|
||||
"create_at": 0,
|
||||
"delete_at": 0,
|
||||
@@ -161,6 +164,7 @@ exports[`FileAttachment should match snapshot, regular file 1`] = `
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "",
|
||||
"create_at": 0,
|
||||
"delete_at": 0,
|
||||
@@ -238,6 +242,7 @@ exports[`FileAttachment should match snapshot, regular image 1`] = `
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "",
|
||||
"create_at": 0,
|
||||
"delete_at": 0,
|
||||
@@ -315,6 +320,7 @@ exports[`FileAttachment should match snapshot, small image 1`] = `
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "",
|
||||
"create_at": 0,
|
||||
"delete_at": 0,
|
||||
@@ -360,6 +366,7 @@ exports[`FileAttachment should match snapshot, svg image 1`] = `
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "",
|
||||
"create_at": 0,
|
||||
"delete_at": 0,
|
||||
@@ -409,6 +416,7 @@ exports[`FileAttachment should match snapshot, svg image 1`] = `
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "",
|
||||
"create_at": 0,
|
||||
"delete_at": 0,
|
||||
@@ -486,6 +494,7 @@ exports[`FileAttachment should match snapshot, when file is not loaded 1`] = `
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "",
|
||||
"create_at": 0,
|
||||
"delete_at": 0,
|
||||
@@ -530,6 +539,7 @@ exports[`FileAttachment should match snapshot, with compact display 1`] = `
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "",
|
||||
"create_at": 0,
|
||||
"delete_at": 0,
|
||||
@@ -575,6 +585,7 @@ exports[`FileAttachment should match snapshot, without compact display and witho
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "",
|
||||
"create_at": 0,
|
||||
"delete_at": 0,
|
||||
|
||||
@@ -41,6 +41,7 @@ describe('FileAttachment', () => {
|
||||
height: 80,
|
||||
has_preview_image: true,
|
||||
user_id: '',
|
||||
channel_id: 'channel_id',
|
||||
create_at: 0,
|
||||
update_at: 0,
|
||||
delete_at: 0,
|
||||
|
||||
@@ -17,6 +17,7 @@ describe('components/file_attachment/FilenameOverlay', () => {
|
||||
height: 80,
|
||||
has_preview_image: true,
|
||||
user_id: '',
|
||||
channel_id: 'channel_id',
|
||||
create_at: 0,
|
||||
update_at: 0,
|
||||
delete_at: 0,
|
||||
|
||||
@@ -36,6 +36,7 @@ exports[`FilePreview should match snapshot 1`] = `
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "",
|
||||
"create_at": 0,
|
||||
"delete_at": 0,
|
||||
@@ -82,6 +83,7 @@ exports[`FilePreview should match snapshot 1`] = `
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "",
|
||||
"create_at": 0,
|
||||
"delete_at": 0,
|
||||
@@ -140,6 +142,7 @@ exports[`FilePreview should match snapshot when props are changed 1`] = `
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "",
|
||||
"create_at": 0,
|
||||
"delete_at": 0,
|
||||
@@ -186,6 +189,7 @@ exports[`FilePreview should match snapshot when props are changed 1`] = `
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "",
|
||||
"create_at": 0,
|
||||
"delete_at": 0,
|
||||
@@ -244,6 +248,7 @@ exports[`FilePreview should match snapshot when props are changed 2`] = `
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "",
|
||||
"create_at": 0,
|
||||
"delete_at": 0,
|
||||
|
||||
@@ -28,6 +28,7 @@ exports[`component/file_preview/file_progress_preview should match snapshot 1`]
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "",
|
||||
"create_at": 0,
|
||||
"delete_at": 0,
|
||||
@@ -112,6 +113,7 @@ exports[`component/file_preview/file_progress_preview snapshot for percent value
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "",
|
||||
"create_at": 0,
|
||||
"delete_at": 0,
|
||||
|
||||
@@ -20,6 +20,7 @@ describe('FilePreview', () => {
|
||||
extension: 'png',
|
||||
has_preview_image: true,
|
||||
user_id: '',
|
||||
channel_id: 'channel_id',
|
||||
create_at: 0,
|
||||
update_at: 0,
|
||||
delete_at: 0,
|
||||
@@ -41,6 +42,7 @@ describe('FilePreview', () => {
|
||||
id: 'file_id_1',
|
||||
has_preview_image: true,
|
||||
user_id: '',
|
||||
channel_id: 'channel_id',
|
||||
create_at: 0,
|
||||
update_at: 0,
|
||||
delete_at: 0,
|
||||
|
||||
@@ -19,6 +19,7 @@ describe('component/file_preview/file_progress_preview', () => {
|
||||
height: 80,
|
||||
has_preview_image: true,
|
||||
user_id: '',
|
||||
channel_id: 'channel_id',
|
||||
create_at: 0,
|
||||
update_at: 0,
|
||||
delete_at: 0,
|
||||
|
||||
@@ -66,6 +66,7 @@ exports[`components/FilePreviewModal should fall back to default preview if plug
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "client_id",
|
||||
"create_at": 1,
|
||||
"delete_at": 1,
|
||||
@@ -206,6 +207,7 @@ exports[`components/FilePreviewModal should match snapshot 1`] = `
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "client_id",
|
||||
"create_at": 1,
|
||||
"delete_at": 1,
|
||||
@@ -346,6 +348,7 @@ exports[`components/FilePreviewModal should match snapshot for external file 1`]
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "client_id",
|
||||
"create_at": 1,
|
||||
"delete_at": 1,
|
||||
@@ -486,6 +489,7 @@ exports[`components/FilePreviewModal should match snapshot when plugin overrides
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "client_id",
|
||||
"create_at": 1,
|
||||
"delete_at": 1,
|
||||
@@ -547,6 +551,7 @@ exports[`components/FilePreviewModal should match snapshot when plugin overrides
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "client_id",
|
||||
"create_at": 1,
|
||||
"delete_at": 1,
|
||||
@@ -664,6 +669,7 @@ exports[`components/FilePreviewModal should match snapshot, loaded 1`] = `
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "client_id",
|
||||
"create_at": 1,
|
||||
"delete_at": 1,
|
||||
@@ -726,6 +732,7 @@ exports[`components/FilePreviewModal should match snapshot, loaded 1`] = `
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "client_id",
|
||||
"create_at": 1,
|
||||
"delete_at": 1,
|
||||
@@ -815,6 +822,7 @@ exports[`components/FilePreviewModal should match snapshot, loaded and showing f
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "client_id",
|
||||
"create_at": 1,
|
||||
"delete_at": 1,
|
||||
@@ -877,6 +885,7 @@ exports[`components/FilePreviewModal should match snapshot, loaded and showing f
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "client_id",
|
||||
"create_at": 1,
|
||||
"delete_at": 1,
|
||||
@@ -966,6 +975,7 @@ exports[`components/FilePreviewModal should match snapshot, loaded with .js file
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "client_id",
|
||||
"create_at": 1,
|
||||
"delete_at": 1,
|
||||
@@ -1028,6 +1038,7 @@ exports[`components/FilePreviewModal should match snapshot, loaded with .js file
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "client_id",
|
||||
"create_at": 1,
|
||||
"delete_at": 1,
|
||||
@@ -1119,6 +1130,7 @@ exports[`components/FilePreviewModal should match snapshot, loaded with .m4a fil
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "client_id",
|
||||
"create_at": 1,
|
||||
"delete_at": 1,
|
||||
@@ -1180,6 +1192,7 @@ exports[`components/FilePreviewModal should match snapshot, loaded with .m4a fil
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "client_id",
|
||||
"create_at": 1,
|
||||
"delete_at": 1,
|
||||
@@ -1270,6 +1283,7 @@ exports[`components/FilePreviewModal should match snapshot, loaded with .mov fil
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "client_id",
|
||||
"create_at": 1,
|
||||
"delete_at": 1,
|
||||
@@ -1331,6 +1345,7 @@ exports[`components/FilePreviewModal should match snapshot, loaded with .mov fil
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "client_id",
|
||||
"create_at": 1,
|
||||
"delete_at": 1,
|
||||
@@ -1421,6 +1436,7 @@ exports[`components/FilePreviewModal should match snapshot, loaded with footer 1
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "client_id",
|
||||
"create_at": 1,
|
||||
"delete_at": 1,
|
||||
@@ -1483,6 +1499,7 @@ exports[`components/FilePreviewModal should match snapshot, loaded with footer 1
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "client_id",
|
||||
"create_at": 1,
|
||||
"delete_at": 1,
|
||||
@@ -1572,6 +1589,7 @@ exports[`components/FilePreviewModal should match snapshot, loaded with image 1`
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "client_id",
|
||||
"create_at": 1,
|
||||
"delete_at": 1,
|
||||
@@ -1634,6 +1652,7 @@ exports[`components/FilePreviewModal should match snapshot, loaded with image 1`
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "client_id",
|
||||
"create_at": 1,
|
||||
"delete_at": 1,
|
||||
@@ -1723,6 +1742,7 @@ exports[`components/FilePreviewModal should match snapshot, loaded with other fi
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "client_id",
|
||||
"create_at": 1,
|
||||
"delete_at": 1,
|
||||
@@ -1784,6 +1804,7 @@ exports[`components/FilePreviewModal should match snapshot, loaded with other fi
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "client_id",
|
||||
"create_at": 1,
|
||||
"delete_at": 1,
|
||||
|
||||
@@ -44,6 +44,7 @@ exports[`components/file_preview_modal/file_preview_modal_footer/FilePreviewModa
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "client_id",
|
||||
"create_at": 1,
|
||||
"delete_at": 1,
|
||||
@@ -117,6 +118,7 @@ exports[`components/file_preview_modal/file_preview_modal_footer/FilePreviewModa
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "client_id",
|
||||
"create_at": 1,
|
||||
"delete_at": 1,
|
||||
|
||||
@@ -23,6 +23,7 @@ exports[`components/file_preview_modal/file_preview_modal_header/FilePreviewModa
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "client_id",
|
||||
"create_at": 1,
|
||||
"delete_at": 1,
|
||||
@@ -64,6 +65,7 @@ exports[`components/file_preview_modal/file_preview_modal_header/FilePreviewModa
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "client_id",
|
||||
"create_at": 1,
|
||||
"delete_at": 1,
|
||||
|
||||
@@ -13,6 +13,7 @@ exports[`components/file_search_result/FileSearchResultItem should match snapsho
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "client_id",
|
||||
"create_at": 1,
|
||||
"delete_at": 1,
|
||||
@@ -110,6 +111,7 @@ exports[`components/file_search_result/FileSearchResultItem should match snapsho
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "client_id",
|
||||
"create_at": 1,
|
||||
"delete_at": 1,
|
||||
@@ -216,6 +218,7 @@ exports[`components/file_search_result/FileSearchResultItem should match snapsho
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "client_id",
|
||||
"create_at": 1,
|
||||
"delete_at": 1,
|
||||
@@ -322,6 +325,7 @@ exports[`components/file_search_result/FileSearchResultItem should match snapsho
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "client_id",
|
||||
"create_at": 1,
|
||||
"delete_at": 1,
|
||||
|
||||
@@ -45,6 +45,7 @@ exports[`components/SingleImageView permalink preview should render with permali
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "client_id",
|
||||
"create_at": 1,
|
||||
"delete_at": 1,
|
||||
@@ -120,6 +121,7 @@ exports[`components/SingleImageView should match snapshot 1`] = `
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "client_id",
|
||||
"create_at": 1,
|
||||
"delete_at": 1,
|
||||
@@ -195,6 +197,7 @@ exports[`components/SingleImageView should match snapshot 2`] = `
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "client_id",
|
||||
"create_at": 1,
|
||||
"delete_at": 1,
|
||||
@@ -274,6 +277,7 @@ exports[`components/SingleImageView should match snapshot, SVG image 1`] = `
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "client_id",
|
||||
"create_at": 1,
|
||||
"delete_at": 1,
|
||||
@@ -353,6 +357,7 @@ exports[`components/SingleImageView should match snapshot, SVG image 2`] = `
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "client_id",
|
||||
"create_at": 1,
|
||||
"delete_at": 1,
|
||||
@@ -428,6 +433,7 @@ exports[`components/SingleImageView should set loaded state on callback of onIma
|
||||
fileInfo={
|
||||
Object {
|
||||
"archived": false,
|
||||
"channel_id": "channel_id",
|
||||
"clientId": "client_id",
|
||||
"create_at": 1,
|
||||
"delete_at": 1,
|
||||
|
||||
@@ -575,6 +575,7 @@ class TestHelper {
|
||||
return {
|
||||
id: '',
|
||||
user_id: '',
|
||||
channel_id: 'channel_id',
|
||||
create_at: 0,
|
||||
update_at: 0,
|
||||
delete_at: 0,
|
||||
@@ -597,6 +598,7 @@ class TestHelper {
|
||||
files.push({
|
||||
id: this.generateId(),
|
||||
user_id: 'user_id',
|
||||
channel_id: 'channel_id',
|
||||
create_at: 1,
|
||||
update_at: 1,
|
||||
delete_at: 1,
|
||||
|
||||
@@ -360,6 +360,7 @@ export class TestHelper {
|
||||
const defaultFileInfo: FileInfo = {
|
||||
id: 'file_info_id',
|
||||
user_id: 'user_id',
|
||||
channel_id: 'channel_id',
|
||||
create_at: 1,
|
||||
update_at: 1,
|
||||
delete_at: 1,
|
||||
|
||||
Ссылка в новой задаче
Block a user