Skip to content

Commit 522b8f7

Browse files
committed
fix lint
1 parent 4ae2574 commit 522b8f7

File tree

3 files changed

+7
-18
lines changed

3 files changed

+7
-18
lines changed

packages/user-profile-controller/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10-
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/sample-controllers@HEAD
10+
[Unreleased]: https://github.com/MetaMask/core/compare/

packages/user-profile-controller/src/UserProfileController.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
import {
1111
UserProfileController,
1212
type UserProfileControllerMessenger,
13-
} from '@metamask/user-profile-controller';
13+
} from './UserProfileController';
1414

1515
describe('UserProfileController', () => {
1616
describe('metadata', () => {

packages/user-profile-controller/src/UserProfileService.test.ts

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,8 @@ import {
88
import nock from 'nock';
99
import { type SinonFakeTimers, useFakeTimers } from 'sinon';
1010

11+
import { UserProfileService, type UserProfileServiceMessenger } from '.';
1112
import { HttpError } from '../../controller-utils/src/util';
12-
import {
13-
UserProfileService,
14-
type UserProfileServiceMessenger,
15-
} from '@metamask/user-profile-controller';
1613

1714
describe('UserProfileService', () => {
1815
let clock: SinonFakeTimers;
@@ -134,9 +131,7 @@ describe('UserProfileService', () => {
134131
.times(4)
135132
.reply(500);
136133
const { service, rootMessenger } = getService();
137-
service.onRetry(async () => {
138-
await clock.nextAsync();
139-
});
134+
service.onRetry(clock.next);
140135

141136
await expect(
142137
rootMessenger.call('UserProfileService:updateProfile'),
@@ -151,9 +146,7 @@ describe('UserProfileService', () => {
151146
.times(4)
152147
.reply(500);
153148
const { service, rootMessenger } = getService();
154-
service.onRetry(async () => {
155-
await clock.nextAsync();
156-
});
149+
service.onRetry(clock.next);
157150
const onDegradedListener = jest.fn();
158151
service.onDegraded(onDegradedListener);
159152

@@ -171,9 +164,7 @@ describe('UserProfileService', () => {
171164
.times(12)
172165
.reply(500);
173166
const { service, rootMessenger } = getService();
174-
service.onRetry(async () => {
175-
await clock.nextAsync();
176-
});
167+
service.onRetry(clock.next);
177168
const onBreakListener = jest.fn();
178169
service.onBreak(onBreakListener);
179170

@@ -227,9 +218,7 @@ describe('UserProfileService', () => {
227218
policyOptions: { circuitBreakDuration },
228219
},
229220
});
230-
service.onRetry(async () => {
231-
await clock.nextAsync();
232-
});
221+
service.onRetry(clock.next);
233222

234223
await expect(
235224
rootMessenger.call('UserProfileService:updateProfile'),

0 commit comments

Comments
 (0)