Skip to content

Commit

Permalink
fix:test: lint no empty functions
Browse files Browse the repository at this point in the history
  • Loading branch information
digiwand committed Aug 27, 2024
1 parent 54d0a11 commit cd0208f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/scripts/lib/createRPCMethodTrackingMiddleware.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const appStateController = {
const metaMetricsController = new MetaMetricsController({
segment: createSegmentMock(2, 10000),
getCurrentChainId: () => '0x1338',
onNetworkDidChange: () => {},
onNetworkDidChange: jest.fn(),
preferencesStore: {
subscribe: jest.fn(),
getState: jest.fn(() => ({
Expand Down Expand Up @@ -137,7 +137,7 @@ describe('createRPCMethodTrackingMiddleware', () => {
beforeEach(() => {
trackEventSpy = jest
.spyOn(MetaMetricsController.prototype, 'trackEvent')
.mockImplementation(() => {});
.mockImplementation(() => undefined);
});
afterEach(() => {
jest.resetAllMocks();
Expand Down

0 comments on commit cd0208f

Please sign in to comment.