fixed linter errors
This commit is contained in:
parent
cb98e71748
commit
7da412d8e5
1 changed files with 100 additions and 100 deletions
|
@ -306,14 +306,14 @@ describe('compose reducer', () => {
|
||||||
description: null,
|
description: null,
|
||||||
id: '1375732379',
|
id: '1375732379',
|
||||||
pleroma: {
|
pleroma: {
|
||||||
mime_type: 'image/jpeg'
|
mime_type: 'image/jpeg',
|
||||||
},
|
},
|
||||||
preview_url: 'https://media.gleasonator.com/media_attachments/files/000/853/856/original/7035d67937053e1d.jpg',
|
preview_url: 'https://media.gleasonator.com/media_attachments/files/000/853/856/original/7035d67937053e1d.jpg',
|
||||||
remote_url: 'https://media.gleasonator.com/media_attachments/files/000/853/856/original/7035d67937053e1d.jpg',
|
remote_url: 'https://media.gleasonator.com/media_attachments/files/000/853/856/original/7035d67937053e1d.jpg',
|
||||||
text_url: 'https://media.gleasonator.com/media_attachments/files/000/853/856/original/7035d67937053e1d.jpg',
|
text_url: 'https://media.gleasonator.com/media_attachments/files/000/853/856/original/7035d67937053e1d.jpg',
|
||||||
type: 'image',
|
type: 'image',
|
||||||
url: 'https://media.gleasonator.com/media_attachments/files/000/853/856/original/7035d67937053e1d.jpg'
|
url: 'https://media.gleasonator.com/media_attachments/files/000/853/856/original/7035d67937053e1d.jpg',
|
||||||
}
|
},
|
||||||
];
|
];
|
||||||
const action = {
|
const action = {
|
||||||
type: actions.COMPOSE_UPLOAD_SUCCESS,
|
type: actions.COMPOSE_UPLOAD_SUCCESS,
|
||||||
|
@ -372,103 +372,103 @@ describe('compose reducer', () => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
// it('should handle COMPOSE_MENTION', () => {
|
// it('should handle COMPOSE_MENTION', () => {
|
||||||
// const state = ImmutableMap({});
|
// const state = ImmutableMap({});
|
||||||
// const account = {
|
// const account = {
|
||||||
// '9w1HhmenIAKBHJiUs4': {
|
// '9w1HhmenIAKBHJiUs4': {
|
||||||
// header_static: 'https://media.gleasonator.com/accounts/headers/000/000/001/original/9d0e4dbf1c9dbc8f.png',
|
// header_static: 'https://media.gleasonator.com/accounts/headers/000/000/001/original/9d0e4dbf1c9dbc8f.png',
|
||||||
// display_name_html: 'Alex Gleason',
|
// display_name_html: 'Alex Gleason',
|
||||||
// bot: false,
|
// bot: false,
|
||||||
// display_name: 'Alex Gleason',
|
// display_name: 'Alex Gleason',
|
||||||
// created_at: '2020-06-12T21:47:28.000Z',
|
// created_at: '2020-06-12T21:47:28.000Z',
|
||||||
// locked: false,
|
// locked: false,
|
||||||
// emojis: [],
|
// emojis: [],
|
||||||
// header: 'https://media.gleasonator.com/accounts/headers/000/000/001/original/9d0e4dbf1c9dbc8f.png',
|
// header: 'https://media.gleasonator.com/accounts/headers/000/000/001/original/9d0e4dbf1c9dbc8f.png',
|
||||||
// url: 'https://gleasonator.com/users/alex',
|
// url: 'https://gleasonator.com/users/alex',
|
||||||
// note: 'Fediverse developer. I come in peace. <a class="hashtag" data-tag="vegan" href="https://gleasonator.com/tag/vegan">#vegan</a> <a class="hashtag" data-tag="freeculture" href="https://gleasonator.com/tag/freeculture">#freeculture</a> <a class="hashtag" data-tag="atheist" href="https://gleasonator.com/tag/atheist">#atheist</a> <a class="hashtag" data-tag="antiporn" href="https://gleasonator.com/tag/antiporn">#antiporn</a> <a class="hashtag" data-tag="gendercritical" href="https://gleasonator.com/tag/gendercritical">#gendercritical</a>. Boosts ≠ endorsements.',
|
// note: 'Fediverse developer. I come in peace. <a class="hashtag" data-tag="vegan" href="https://gleasonator.com/tag/vegan">#vegan</a> <a class="hashtag" data-tag="freeculture" href="https://gleasonator.com/tag/freeculture">#freeculture</a> <a class="hashtag" data-tag="atheist" href="https://gleasonator.com/tag/atheist">#atheist</a> <a class="hashtag" data-tag="antiporn" href="https://gleasonator.com/tag/antiporn">#antiporn</a> <a class="hashtag" data-tag="gendercritical" href="https://gleasonator.com/tag/gendercritical">#gendercritical</a>. Boosts ≠ endorsements.',
|
||||||
// acct: 'alex@gleasonator.com',
|
// acct: 'alex@gleasonator.com',
|
||||||
// avatar_static: 'https://media.gleasonator.com/accounts/avatars/000/000/001/original/1a630e4c4c64c948.jpg',
|
// avatar_static: 'https://media.gleasonator.com/accounts/avatars/000/000/001/original/1a630e4c4c64c948.jpg',
|
||||||
// username: 'alex',
|
// username: 'alex',
|
||||||
// avatar: 'https://media.gleasonator.com/accounts/avatars/000/000/001/original/1a630e4c4c64c948.jpg',
|
// avatar: 'https://media.gleasonator.com/accounts/avatars/000/000/001/original/1a630e4c4c64c948.jpg',
|
||||||
// fields: [
|
// fields: [
|
||||||
// {
|
// {
|
||||||
// name: 'Website',
|
// name: 'Website',
|
||||||
// value: '<a href="https://alexgleason.me" rel="ugc">https://alexgleason.me</a>',
|
// value: '<a href="https://alexgleason.me" rel="ugc">https://alexgleason.me</a>',
|
||||||
// name_emojified: 'Website',
|
// name_emojified: 'Website',
|
||||||
// value_emojified: '<a href="https://alexgleason.me" rel="ugc">https://alexgleason.me</a>',
|
// value_emojified: '<a href="https://alexgleason.me" rel="ugc">https://alexgleason.me</a>',
|
||||||
// value_plain: 'https://alexgleason.me'
|
// value_plain: 'https://alexgleason.me'
|
||||||
// },
|
// },
|
||||||
// {
|
// {
|
||||||
// name: 'Pleroma+Soapbox',
|
// name: 'Pleroma+Soapbox',
|
||||||
// value: '<a href="https://soapbox.pub" rel="ugc">https://soapbox.pub</a>',
|
// value: '<a href="https://soapbox.pub" rel="ugc">https://soapbox.pub</a>',
|
||||||
// name_emojified: 'Pleroma+Soapbox',
|
// name_emojified: 'Pleroma+Soapbox',
|
||||||
// value_emojified: '<a href="https://soapbox.pub" rel="ugc">https://soapbox.pub</a>',
|
// value_emojified: '<a href="https://soapbox.pub" rel="ugc">https://soapbox.pub</a>',
|
||||||
// value_plain: 'https://soapbox.pub'
|
// value_plain: 'https://soapbox.pub'
|
||||||
// },
|
// },
|
||||||
// {
|
// {
|
||||||
// name: 'Email',
|
// name: 'Email',
|
||||||
// value: 'alex@alexgleason.me',
|
// value: 'alex@alexgleason.me',
|
||||||
// name_emojified: 'Email',
|
// name_emojified: 'Email',
|
||||||
// value_emojified: 'alex@alexgleason.me',
|
// value_emojified: 'alex@alexgleason.me',
|
||||||
// value_plain: 'alex@alexgleason.me'
|
// value_plain: 'alex@alexgleason.me'
|
||||||
// },
|
// },
|
||||||
// {
|
// {
|
||||||
// name: 'Gender identity',
|
// name: 'Gender identity',
|
||||||
// value: 'Soyboy',
|
// value: 'Soyboy',
|
||||||
// name_emojified: 'Gender identity',
|
// name_emojified: 'Gender identity',
|
||||||
// value_emojified: 'Soyboy',
|
// value_emojified: 'Soyboy',
|
||||||
// value_plain: 'Soyboy'
|
// value_plain: 'Soyboy'
|
||||||
// }
|
// }
|
||||||
// ],
|
// ],
|
||||||
// pleroma: {
|
// pleroma: {
|
||||||
// hide_follows: false,
|
// hide_follows: false,
|
||||||
// hide_followers_count: false,
|
// hide_followers_count: false,
|
||||||
// background_image: null,
|
// background_image: null,
|
||||||
// confirmation_pending: false,
|
// confirmation_pending: false,
|
||||||
// is_moderator: false,
|
// is_moderator: false,
|
||||||
// hide_follows_count: false,
|
// hide_follows_count: false,
|
||||||
// hide_followers: false,
|
// hide_followers: false,
|
||||||
// relationship: {
|
// relationship: {
|
||||||
// showing_reblogs: true,
|
// showing_reblogs: true,
|
||||||
// followed_by: false,
|
// followed_by: false,
|
||||||
// subscribing: false,
|
// subscribing: false,
|
||||||
// blocked_by: false,
|
// blocked_by: false,
|
||||||
// requested: false,
|
// requested: false,
|
||||||
// domain_blocking: false,
|
// domain_blocking: false,
|
||||||
// following: false,
|
// following: false,
|
||||||
// endorsed: false,
|
// endorsed: false,
|
||||||
// blocking: false,
|
// blocking: false,
|
||||||
// muting: false,
|
// muting: false,
|
||||||
// id: '9w1HhmenIAKBHJiUs4',
|
// id: '9w1HhmenIAKBHJiUs4',
|
||||||
// muting_notifications: false
|
// muting_notifications: false
|
||||||
// },
|
// },
|
||||||
// tags: [],
|
// tags: [],
|
||||||
// hide_favorites: true,
|
// hide_favorites: true,
|
||||||
// is_admin: false,
|
// is_admin: false,
|
||||||
// skip_thread_containment: false
|
// skip_thread_containment: false
|
||||||
// },
|
// },
|
||||||
// source: {
|
// source: {
|
||||||
// fields: [],
|
// fields: [],
|
||||||
// note: 'Fediverse developer. I come in peace. #vegan #freeculture #atheist #antiporn #gendercritical. Boosts ≠ endorsements.',
|
// note: 'Fediverse developer. I come in peace. #vegan #freeculture #atheist #antiporn #gendercritical. Boosts ≠ endorsements.',
|
||||||
// pleroma: {
|
// pleroma: {
|
||||||
// actor_type: 'Person',
|
// actor_type: 'Person',
|
||||||
// discoverable: false
|
// discoverable: false
|
||||||
// },
|
// },
|
||||||
// sensitive: false
|
// sensitive: false
|
||||||
// },
|
// },
|
||||||
// id: '9w1HhmenIAKBHJiUs4',
|
// id: '9w1HhmenIAKBHJiUs4',
|
||||||
// note_emojified: 'Fediverse developer. I come in peace. <a class="hashtag" data-tag="vegan" href="https://gleasonator.com/tag/vegan">#vegan</a> <a class="hashtag" data-tag="freeculture" href="https://gleasonator.com/tag/freeculture">#freeculture</a> <a class="hashtag" data-tag="atheist" href="https://gleasonator.com/tag/atheist">#atheist</a> <a class="hashtag" data-tag="antiporn" href="https://gleasonator.com/tag/antiporn">#antiporn</a> <a class="hashtag" data-tag="gendercritical" href="https://gleasonator.com/tag/gendercritical">#gendercritical</a>. Boosts ≠ endorsements.'
|
// note_emojified: 'Fediverse developer. I come in peace. <a class="hashtag" data-tag="vegan" href="https://gleasonator.com/tag/vegan">#vegan</a> <a class="hashtag" data-tag="freeculture" href="https://gleasonator.com/tag/freeculture">#freeculture</a> <a class="hashtag" data-tag="atheist" href="https://gleasonator.com/tag/atheist">#atheist</a> <a class="hashtag" data-tag="antiporn" href="https://gleasonator.com/tag/antiporn">#antiporn</a> <a class="hashtag" data-tag="gendercritical" href="https://gleasonator.com/tag/gendercritical">#gendercritical</a>. Boosts ≠ endorsements.'
|
||||||
// }
|
// }
|
||||||
// };
|
// };
|
||||||
// const action = {
|
// const action = {
|
||||||
// type: actions.COMPOSE_MENTION,
|
// type: actions.COMPOSE_MENTION,
|
||||||
// account: account,
|
// account: account,
|
||||||
// };
|
// };
|
||||||
// expect(reducer(state, action).toJS()).toMatchObject({
|
// expect(reducer(state, action).toJS()).toMatchObject({
|
||||||
// text: '@alex@gleasonator.com',
|
// text: '@alex@gleasonator.com',
|
||||||
// caretPosition: null,
|
// caretPosition: null,
|
||||||
// });
|
// });
|
||||||
// });
|
// });
|
||||||
|
|
||||||
// it('should handle COMPOSE_DIRECT', () => {
|
// it('should handle COMPOSE_DIRECT', () => {
|
||||||
// const state = ImmutableMap({ caretPosition: 0, privacy: 'public' });
|
// const state = ImmutableMap({ caretPosition: 0, privacy: 'public' });
|
||||||
|
|
Loading…
Reference in a new issue