Skip to content

Commit

Permalink
feat: shortened function body
Browse files Browse the repository at this point in the history
  • Loading branch information
pozil committed Aug 9, 2023
1 parent b7bee28 commit 32866f8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@ import getContactList from '@salesforce/apex/ContactController.getContactList';
// Mocking imperative Apex method call
jest.mock(
'@salesforce/apex/ContactController.getContactList',
() => {
return {
default: jest.fn()
};
},
() => ({
default: jest.fn()
}),
{ virtual: true }
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@ import checkApexTypes from '@salesforce/apex/ApexTypesController.checkApexTypes'
// Mocking imperative Apex method call
jest.mock(
'@salesforce/apex/ApexTypesController.checkApexTypes',
() => {
return {
default: jest.fn()
};
},
() => ({
default: jest.fn()
}),
{ virtual: true }
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@ import findContacts from '@salesforce/apex/ContactController.findContacts';
// Mocking imperative Apex method call
jest.mock(
'@salesforce/apex/ContactController.findContacts',
() => {
return {
default: jest.fn()
};
},
() => ({
default: jest.fn()
}),
{ virtual: true }
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@ import findContacts from '@salesforce/apex/ContactController.findContacts';
// Mocking imperative Apex method call
jest.mock(
'@salesforce/apex/ContactController.findContacts',
() => {
return {
default: jest.fn()
};
},
() => ({
default: jest.fn()
}),
{ virtual: true }
);

Expand Down

0 comments on commit 32866f8

Please sign in to comment.