Skip to content
Snippets Groups Projects
Commit 5c97cfe9 authored by Chris Beer's avatar Chris Beer
Browse files

Update eslint dependencies

parent 4560bb2e
Branches
No related tags found
No related merge requests found
Showing
with 3 additions and 24 deletions
......@@ -27,6 +27,8 @@
"sort-keys": ["error", "asc", {
"caseSensitive": false,
"natural": false
}]
}],
"react/jsx-props-no-spreading": "off",
"arrow-parens": "off",
}
}
describe('add two plugins to <WorkspaceControlPanelButtons>', () => {
beforeAll(async () => {
await page.goto('http://127.0.0.1:4488/__tests__/integration/mirador/plugins/add.html');
......
describe('add plugins for companion windows', () => {
beforeAll(async () => {
await page.goto('http://127.0.0.1:4488/__tests__/integration/mirador/plugins/companionWindow.html');
......
describe('try to apply 2 add plugins and 2 wrap plugins to <WorkspaceControlPanelButtons>', () => {
beforeAll(async () => {
await page.goto('http://127.0.0.1:4488/__tests__/integration/mirador/plugins/priority.html');
......
describe('pass valid and invalid plugins to <WorkspaceControlPanelButtons>', () => {
beforeAll(async () => {
await page.goto('http://127.0.0.1:4488/__tests__/integration/mirador/plugins/validate.html');
......
describe('wrap <WorkspaceControlPanelButtons> by a plugin', () => {
beforeAll(async () => {
await page.goto('http://127.0.0.1:4488/__tests__/integration/mirador/plugins/wrap.html');
......
......@@ -249,7 +249,6 @@ describe('window actions', () => {
});
});
describe('setWindowThumbnailPosition', () => {
it('returns the appropriate action type', () => {
const id = 'abc123';
......
......@@ -15,7 +15,6 @@ jest.mock('react-dom');
jest.mock('openseadragon');
jest.mock('../../../src/lib/OpenSeadragonCanvasOverlay');
describe('AnnotationsOverlay', () => {
let wrapper;
let viewer;
......
......@@ -41,7 +41,6 @@ describe('CanvasAnnotations', () => {
},
];
it('renders a heading with the appropriate context based on index and totalSize', () => {
wrapper = createWrapper({ annotations });
......
......@@ -32,7 +32,6 @@ describe('LanguageSettings', () => {
},
];
it('renders a list with a list item for each language passed in props', () => {
wrapper = createWrapper({ languages });
......
......@@ -40,7 +40,6 @@ describe('LocalePicker', () => {
expect(wrapper.find(MenuItem).length).toBe(2);
});
it('triggers setLocale prop when clicking a list item', () => {
const setLocale = jest.fn();
......
......@@ -13,7 +13,6 @@ function createWrapper(props) {
);
}
describe('ManifestForm', () => {
it('renders', () => {
const wrapper = createWrapper({ addResourcesOpen: false });
......
......@@ -10,7 +10,6 @@ const canvases = Utils.parseManifest(fixture).getSequences()[0].getCanvases();
jest.mock('openseadragon');
describe('OpenSeadragonViewer', () => {
let wrapper;
let updateViewport;
......
......@@ -3,7 +3,6 @@ import { shallow } from 'enzyme';
import { SearchHit } from '../../../src/components/SearchHit';
import { ScrollTo } from '../../../src/components/ScrollTo';
/**
* Helper function to create a shallow wrapper around SearchResults
*/
......
......@@ -5,7 +5,6 @@ import CompanionWindow from '../../../src/containers/CompanionWindow';
import SearchResults from '../../../src/containers/SearchResults';
import { SearchPanel } from '../../../src/components/SearchPanel';
/**
* Helper function to create a shallow wrapper around SearchPanel
*/
......
......@@ -2,7 +2,6 @@ import React from 'react';
import { shallow } from 'enzyme';
import { SearchPanelNavigation } from '../../../src/components/SearchPanelNavigation';
/**
* Helper function to create a shallow wrapper around SearchPanelNavigation
*/
......
......@@ -4,7 +4,6 @@ import Button from '@material-ui/core/Button';
import { SearchResults } from '../../../src/components/SearchResults';
import { ScrollTo } from '../../../src/components/ScrollTo';
/**
* Helper function to create a shallow wrapper around SearchResults
*/
......
......@@ -3,7 +3,6 @@ import {
addPluginReducersToStore,
} from '../../../src/extend/pluginPreprocessing';
describe('filterValidPlugins', () => {
it('returns empty array if plugin array is empty', () => {
expect(filterValidPlugins([])).toEqual([]);
......
......@@ -3,7 +3,6 @@ import { mount } from 'enzyme';
import { withPlugins } from '../../../src/extend/withPlugins';
import PluginContext from '../../../src/extend/PluginContext';
/** Mock target component */
const Target = props => <div>Hello</div>;
......
import { Utils } from 'manifesto.js/dist-esmodule/Utils';
import MiradorCanvas from '../../../src/lib/MiradorCanvas';
import fixture from '../../fixtures/version-2/019.json';
import v3fixture from '../../fixtures/version-3/001.json';
import serviceFixture from '../../fixtures/version-2/canvasService.json';
import otherContentFixture from '../../fixtures/version-2/299843.json';
import otherContentStringsFixture from '../../fixtures/version-2/BibliographicResource_3000126341277.json';
......@@ -9,14 +8,10 @@ import fragmentFixture from '../../fixtures/version-2/hamilton.json';
describe('MiradorCanvas', () => {
let instance;
let v3Instance;
beforeAll(() => {
instance = new MiradorCanvas(
Utils.parseManifest(fixture).getSequences()[0].getCanvases()[0],
);
v3Instance = new MiradorCanvas(
Utils.parseManifest(v3fixture).getSequences()[0].getCanvases()[0],
);
});
describe('annotationListUris', () => {
describe('when no annotationLists are present', () => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment