Skip to content

Commit 933cdb7

Browse files
committed
UIQM-791 fix eslint
1 parent 7c5eef5 commit 933cdb7

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

src/QuickMarcEditor/QuickMarcEditorContainer.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,6 @@ describe('Given Quick Marc Editor Container', () => {
565565
describe('when a user is in a member tenant and derives a local record', () => {
566566
it('should take the record data from the member tenant', async () => {
567567
const newLocation = {
568-
...location,
569568
search: '?shared=false',
570569
};
571570
const newMutator = {

src/QuickMarcEditor/useSaveRecord/useSaveRecord.test.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ const getWrapper = ({ quickMarcContext, history }) => ({ children }) => (
8484
</Harness>
8585
);
8686

87-
const getMutator = (instance) => ({
87+
const getMutator = () => ({
8888
quickMarcEditMarcRecord: {
8989
POST: jest.fn().mockResolvedValue({}),
9090
},
@@ -119,11 +119,11 @@ const getInstance = () => ({
119119
title: 'ui-quick-marc.record.edit.title',
120120
});
121121

122-
const getInitialProps = (marcType, instance) => ({
122+
const getInitialProps = (marcType) => ({
123123
linksCount: 0,
124124
locations,
125125
fixedFieldSpec: mockSpecs[marcType],
126-
mutator: getMutator(instance),
126+
mutator: getMutator(),
127127
refreshPageData: mockRefreshPageData,
128128
onClose: mockOnClose,
129129
onSave: mockOnSave,
@@ -1209,7 +1209,7 @@ describe('useSaveRecord', () => {
12091209
const { result } = renderHook(useSaveRecord, {
12101210
initialProps: {
12111211
...getInitialProps(marcType),
1212-
mutator: getMutator(getInstance()),
1212+
mutator: getMutator(),
12131213
},
12141214
wrapper: getWrapper({
12151215
quickMarcContext: {
@@ -1234,7 +1234,7 @@ describe('useSaveRecord', () => {
12341234
const { result } = renderHook(useSaveRecord, {
12351235
initialProps: {
12361236
...getInitialProps(marcType),
1237-
mutator: getMutator(getInstance()),
1237+
mutator: getMutator(),
12381238
},
12391239
wrapper: getWrapper({
12401240
quickMarcContext: {
@@ -1289,7 +1289,7 @@ describe('useSaveRecord', () => {
12891289
const { result } = renderHook(useSaveRecord, {
12901290
initialProps: {
12911291
...getInitialProps(marcType),
1292-
mutator: getMutator(getInstance()),
1292+
mutator: getMutator(),
12931293
},
12941294
wrapper: getWrapper({
12951295
quickMarcContext: {
@@ -1438,7 +1438,7 @@ describe('useSaveRecord', () => {
14381438
const { result } = renderHook(useSaveRecord, {
14391439
initialProps: {
14401440
...getInitialProps(marcType),
1441-
mutator: getMutator(getInstance()),
1441+
mutator: getMutator(),
14421442
},
14431443
wrapper: getWrapper({
14441444
quickMarcContext: {
@@ -1507,7 +1507,7 @@ describe('useSaveRecord', () => {
15071507
const { result } = renderHook(useSaveRecord, {
15081508
initialProps: {
15091509
...getInitialProps(marcType),
1510-
mutator: getMutator(getInstance()),
1510+
mutator: getMutator(),
15111511
},
15121512
wrapper: getWrapper({
15131513
quickMarcContext: {
@@ -1544,7 +1544,7 @@ describe('useSaveRecord', () => {
15441544
renderHook(useSaveRecord, {
15451545
initialProps: {
15461546
...getInitialProps(marcType),
1547-
mutator: getMutator(getInstance()),
1547+
mutator: getMutator(),
15481548
},
15491549
wrapper: getWrapper({
15501550
quickMarcContext: {
@@ -1574,7 +1574,7 @@ describe('useSaveRecord', () => {
15741574
const { result } = renderHook(useSaveRecord, {
15751575
initialProps: {
15761576
...getInitialProps(marcType),
1577-
mutator: getMutator(getInstance()),
1577+
mutator: getMutator(),
15781578
},
15791579
wrapper: getWrapper({
15801580
quickMarcContext: {
@@ -1602,7 +1602,7 @@ describe('useSaveRecord', () => {
16021602
const { result } = renderHook(useSaveRecord, {
16031603
initialProps: {
16041604
...getInitialProps(marcType),
1605-
mutator: getMutator(getInstance()),
1605+
mutator: getMutator(),
16061606
},
16071607
wrapper: getWrapper({
16081608
quickMarcContext: {
@@ -1634,7 +1634,7 @@ describe('useSaveRecord', () => {
16341634
const { result } = renderHook(useSaveRecord, {
16351635
initialProps: {
16361636
...getInitialProps(marcType),
1637-
mutator: getMutator(getInstance()),
1637+
mutator: getMutator(),
16381638
},
16391639
wrapper: getWrapper({
16401640
quickMarcContext: {

0 commit comments

Comments
 (0)