Untuck tests out of __tests__ directories, colocate with program files

This commit is contained in:
Alex Gleason
2023-10-02 14:27:40 -05:00
parent 645ce60a5f
commit 3f640e9797
160 changed files with 223 additions and 681 deletions

View File

@ -1,6 +1,6 @@
import { Record as ImmutableRecord, fromJS } from 'immutable';
import { normalizeAccount } from '../account';
import { normalizeAccount } from './account';
const AVATAR_MISSING = require('soapbox/assets/images/avatar-missing.png');
const HEADER_MISSING = require('soapbox/assets/images/header-missing.png');

View File

@ -1,6 +1,6 @@
import { Record as ImmutableRecord } from 'immutable';
import { normalizeAttachment } from '../attachment';
import { normalizeAttachment } from './attachment';
describe('normalizeAttachment()', () => {
it('adds base fields', () => {

View File

@ -1,7 +1,7 @@
import { Record as ImmutableRecord } from 'immutable';
import { normalizeAttachment } from '../attachment';
import { normalizeChatMessage } from '../chat-message';
import { normalizeAttachment } from './attachment';
import { normalizeChatMessage } from './chat-message';
describe('normalizeChatMessage()', () => {
it('upgrades attachment to media_attachments', () => {

View File

@ -1,6 +1,6 @@
import { Map as ImmutableMap, fromJS } from 'immutable';
import { normalizeInstance } from '../instance';
import { normalizeInstance } from './instance';
describe('normalizeInstance()', () => {
it('normalizes an empty Map', () => {

View File

@ -1,6 +1,6 @@
import { Record as ImmutableRecord } from 'immutable';
import { normalizeMention } from '../mention';
import { normalizeMention } from './mention';
describe('normalizeMention()', () => {
it('adds base fields', () => {

View File

@ -1,6 +1,6 @@
import { Record as ImmutableRecord } from 'immutable';
import { normalizeNotification } from '../notification';
import { normalizeNotification } from './notification';
describe('normalizeNotification()', () => {
it('normalizes an empty map', () => {

View File

@ -1,6 +1,6 @@
import { Record as ImmutableRecord } from 'immutable';
import { normalizeSoapboxConfig } from '../soapbox-config';
import { normalizeSoapboxConfig } from './soapbox-config';
describe('normalizeSoapboxConfig()', () => {
it('adds base fields', () => {

View File

@ -1,6 +1,6 @@
import { Record as ImmutableRecord, fromJS } from 'immutable';
import { normalizeStatus } from '../status';
import { normalizeStatus } from './status';
import type { Poll, Card } from 'soapbox/types/entities';