Skip to content

Commit

Permalink
test: move Editors test to rtl-spec
Browse files Browse the repository at this point in the history
  • Loading branch information
erikian committed Aug 4, 2024
1 parent 5b3dce7 commit 8c7d666
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { mount } from 'enzyme';

import { renderNonIdealState } from '../../../src/renderer/components/editors-non-ideal-state';
import { EditorMosaic } from '../../../src/renderer/editor-mosaic';
import { renderNonIdealState } from '../../src/renderer/components/editors-non-ideal-state';
import { EditorMosaic } from '../../src/renderer/editor-mosaic';

describe('renderNonIdealState()', () => {
let editorMosaic: EditorMosaic;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import * as React from 'react';

import { shallow } from 'enzyme';

import { EditorId, MAIN_JS } from '../../../src/interfaces';
import { EditorId, MAIN_JS } from '../../src/interfaces';
import {
MaximizeButton,
RemoveButton,
} from '../../../src/renderer/components/editors-toolbar-button';
import { AppState } from '../../../src/renderer/state';
} from '../../src/renderer/components/editors-toolbar-button';
import { AppState } from '../../src/renderer/state';

let mockContext: any = {};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@ import * as React from 'react';
import { mount, shallow } from 'enzyme';
import { MosaicWindowProps } from 'react-mosaic-component';

import { EditorId, EditorValues, MAIN_JS } from '../../../src/interfaces';
import { App } from '../../../src/renderer/app';
import { Editors } from '../../../src/renderer/components/editors';
import { Editor, EditorMosaic } from '../../../src/renderer/editor-mosaic';
import { AppState } from '../../../src/renderer/state';
import { EditorId, EditorValues, MAIN_JS } from '../../src/interfaces';
import { App } from '../../src/renderer/app';
import { Editors } from '../../src/renderer/components/editors';
import { Editor, EditorMosaic } from '../../src/renderer/editor-mosaic';
import { AppState } from '../../src/renderer/state';
import {
MonacoEditorMock,
MonacoMock,
StateMock,
createEditorValues,
} from '../../mocks/mocks';
import { emitEvent } from '../../utils';
} from '../../tests/mocks/mocks';
import { emitEvent } from '../../tests/utils';

jest.mock('../../../src/renderer/components/editor', () => ({
jest.mock('../../src/renderer/components/editor', () => ({
Editor: () => 'Editor',
}));

Expand Down

0 comments on commit 8c7d666

Please sign in to comment.