Untuck tests out of __tests__ directories, colocate with program files
This commit is contained in:
@ -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');
|
||||
@ -1,6 +1,6 @@
|
||||
import { Record as ImmutableRecord } from 'immutable';
|
||||
|
||||
import { normalizeAttachment } from '../attachment';
|
||||
import { normalizeAttachment } from './attachment';
|
||||
|
||||
describe('normalizeAttachment()', () => {
|
||||
it('adds base fields', () => {
|
||||
@ -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', () => {
|
||||
@ -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', () => {
|
||||
@ -1,6 +1,6 @@
|
||||
import { Record as ImmutableRecord } from 'immutable';
|
||||
|
||||
import { normalizeMention } from '../mention';
|
||||
import { normalizeMention } from './mention';
|
||||
|
||||
describe('normalizeMention()', () => {
|
||||
it('adds base fields', () => {
|
||||
@ -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', () => {
|
||||
@ -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', () => {
|
||||
@ -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';
|
||||
|
||||
Reference in New Issue
Block a user