Skip to content

Commit 3c11abd

Browse files
committed
refactor: fixed typo
TICKET: WP-5446
1 parent b4b9107 commit 3c11abd

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

modules/express/src/typedRoutes/api/v2/unlockWallet.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@ export const UnlockLightningWalletBody = {
2323
passphrase: t.string,
2424
} as const;
2525

26-
export const UnlockLightningWalletReponse200 = t.type({
26+
export const UnlockLightningWalletResponse200 = t.type({
2727
message: t.string,
2828
});
2929

3030
/**
3131
* Response for unlocking a lightning wallet.
3232
*/
33-
export const UnlockLightningWalletReponse = {
33+
export const UnlockLightningWalletResponse = {
3434
/** Confirmation message. */
35-
200: UnlockLightningWalletReponse200,
35+
200: UnlockLightningWalletResponse200,
3636
/** BitGo Express error payload. */
3737
400: BitgoExpressError,
3838
} as const;
@@ -51,5 +51,5 @@ export const PostUnlockLightningWallet = httpRoute({
5151
params: UnlockLightningWalletParams,
5252
body: UnlockLightningWalletBody,
5353
}),
54-
response: UnlockLightningWalletReponse,
54+
response: UnlockLightningWalletResponse,
5555
});

modules/express/test/unit/clientRoutes/lightning/lightningSignerRoutes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import nock from 'nock';
55
import * as express from 'express';
66
import * as sinon from 'sinon';
77
import * as fs from 'fs';
8-
import { UnlockLightningWalletReponse200 } from '../../../../src/typedRoutes/api/v2/unlockWallet';
8+
import { UnlockLightningWalletResponse } from '../../../../src/typedRoutes/api/v2/unlockWallet';
99

1010
import { lightningSignerConfigs, apiData, signerApiData } from './lightningSignerFixture';
1111
import {
@@ -180,7 +180,7 @@ describe('Lightning signer routes', () => {
180180
} as unknown as ExpressApiRouteRequest<'express.lightning.unlockWallet', 'post'>;
181181

182182
const res = await handleUnlockLightningWallet(req);
183-
decodeOrElse('UnlockLightningWalletReponse200', UnlockLightningWalletReponse200, res, (_) => {
183+
decodeOrElse('UnlockLightningWalletResponse200', UnlockLightningWalletResponse[200], res, (_) => {
184184
throw new Error('Response did not match expected codec');
185185
});
186186

0 commit comments

Comments
 (0)