Skip to content

Commit 7251b50

Browse files
committed
[DDW-1076] Fix lint
1 parent e8fea2a commit 7251b50

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

source/renderer/app/components/wallet/WalletSendForm.spec.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ import WalletSendForm, { FormData } from './WalletSendForm';
2525
jest.mock(
2626
'../../containers/wallet/dialogs/send-confirmation/SendConfirmation.container',
2727
() => {
28-
const Dialog = ({
28+
function Dialog({
2929
amount,
3030
formattedTotalAmount,
3131
}: {
3232
amount: number;
3333
formattedTotalAmount: number;
34-
}) => {
34+
}) {
3535
return (
3636
<div>
3737
<span data-testid="confirmation-dialog-ada-amount">{amount}</span>
@@ -40,7 +40,7 @@ jest.mock(
4040
</span>
4141
</div>
4242
);
43-
};
43+
}
4444

4545
return {
4646
__esModule: true,
@@ -229,7 +229,9 @@ describe('wallet/Wallet Send Form', () => {
229229
}
230230

231231
function sleep(ms) {
232-
return new Promise((resolve) => setTimeout(resolve, ms));
232+
return new Promise((resolve) => {
233+
setTimeout(resolve, ms);
234+
});
233235
}
234236

235237
async function waitForTransactionFee() {
@@ -541,7 +543,7 @@ describe('wallet/Wallet Send Form', () => {
541543
() =>
542544
new Promise(async (resolve) => {
543545
await sleep(delay);
544-
return resolve({
546+
resolve({
545547
fee: new BigNumber(value),
546548
minimumAda: new BigNumber(1),
547549
});

0 commit comments

Comments
 (0)