Skip to content

Commit 2479b86

Browse files
committed
format
1 parent 330f3aa commit 2479b86

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

src/api/sessions/openSession.spec.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,7 @@ describe('openSession function', () => {
5555
const resp = {
5656
ip: '127.0.0.1',
5757
path: {
58-
IntermediatePath: [
59-
'peer1',
60-
'peer2',
61-
'peer3'
62-
]
58+
IntermediatePath: ['peer1', 'peer2', 'peer3']
6359
},
6460
port: 5542,
6561
protocol: 'tcp',

src/api/tickets/resetTicketStatistics.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ describe('test resetTicketStatistics', function () {
5151
).rejects.toThrow(sdkApiError);
5252
});
5353
it('throws an Error when server returns 500+ error', async function () {
54-
nock(API_ENDPOINT).delete(`/api/v3/tickets/statistics`).reply(500, 'Server Error');
54+
nock(API_ENDPOINT)
55+
.delete(`/api/v3/tickets/statistics`)
56+
.reply(500, 'Server Error');
5557

5658
await expect(
5759
resetTicketStatistics({ apiToken: API_TOKEN, apiEndpoint: API_ENDPOINT })

src/types/session.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const SessionPayload = z.object({
1515
target: z.string(),
1616
path: z.object({
1717
Hops: z.number().optional(),
18-
IntermediatePath: z.array(z.string()).optional(),
18+
IntermediatePath: z.array(z.string()).optional()
1919
})
2020
});
2121

@@ -45,7 +45,7 @@ export const OpenSessionPayloadCall = BasePayload.extend({
4545
listenHost: z.string(),
4646
path: z.object({
4747
Hops: z.number().optional(),
48-
IntermediatePath: z.array(z.string()).optional(),
48+
IntermediatePath: z.array(z.string()).optional()
4949
}),
5050
target: z.object({
5151
Plain: z.string()

0 commit comments

Comments
 (0)