Skip to content

Commit

Permalink
FIX ESLint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Sabina Talipova committed Jul 5, 2023
1 parent 06d39c2 commit e308acb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ AnchorSelectorField.propTypes = {
pageId: PropTypes.number,
anchors: PropTypes.array,
loadingState: PropTypes.oneOf(Object
.keys(anchorSelectorStates)
.map((key) => anchorSelectorStates[key])),
.keys(anchorSelectorStates)
.map((key) => anchorSelectorStates[key])),
onLoadingError: PropTypes.func,
data: PropTypes.shape({
endpoint: PropTypes.string,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
/* global jest, test, describe, beforeEach, it, expect, setTimeout */

import React from 'react';
import { Component as AnchorSelectorField } from '../AnchorSelectorField';
import anchorSelectorStates from 'state/anchorSelector/AnchorSelectorStates';
import { render, screen } from '@testing-library/react';
import { Component as AnchorSelectorField } from '../AnchorSelectorField';

jest.mock('isomorphic-fetch', () =>
() => Promise.resolve({
json: () => ['anchor3', 'anchor4'],
}));
}));
jest.mock('i18n');

function makeProps(obj = {}) {
Expand Down Expand Up @@ -50,7 +50,7 @@ test('AnchorSelectorField componentDidMount() Loads dirty selectors', async () =

test('AnchorSelectorField Merges value with page anchors', async () => {
const beginUpdating = jest.fn();
const { container } = render(<AnchorSelectorField {...makeProps({
render(<AnchorSelectorField {...makeProps({
loadingState: anchorSelectorStates.DIRTY,
actions: {
anchorSelector: {
Expand Down
4 changes: 2 additions & 2 deletions client/src/state/history/readOnePageQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ const config = {
versions: {
...versions,
goToPage(page) {
refetch({
refetch({
offset: ((page || 1) - 1) * limit,
limit,
page_id: recordId,
});
});
}
},
},
Expand Down

0 comments on commit e308acb

Please sign in to comment.