Skip to content

Commit 465e40f

Browse files
committed
fix: did a lintfix
1 parent ae17623 commit 465e40f

File tree

2 files changed

+20
-28
lines changed

2 files changed

+20
-28
lines changed

tests/nodes/agent/handlers/nodesAuditsGet.test.ts

Lines changed: 20 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -205,12 +205,10 @@ describe('nodesAuditEventsGet', () => {
205205
},
206206
);
207207

208-
test.prop(
209-
[
210-
testNodesUtils.randomAuditEventsArb(),
211-
fc.integer({ min: 1, max: 100 }), // limitVal
212-
],
213-
)(
208+
test.prop([
209+
testNodesUtils.randomAuditEventsArb(),
210+
fc.integer({ min: 1, max: 100 }), // LimitVal
211+
])(
214212
'should get audit events with limit (property-based)',
215213
async (randomEvents, limitVal) => {
216214
// Insert randomEvents
@@ -249,17 +247,16 @@ describe('nodesAuditEventsGet', () => {
249247
},
250248
);
251249

252-
test.prop(
253-
[
254-
testNodesUtils.randomAuditEventsArb(2, 100) // At least 2 so there's a valid seek index
255-
.chain((events) =>
256-
fc.record({
257-
events: fc.constant(events),
258-
seekIndex: fc.integer({ min: 0, max: events.length - 1 }),
259-
}),
260-
),
261-
],
262-
)(
250+
test.prop([
251+
testNodesUtils
252+
.randomAuditEventsArb(2, 100) // At least 2 so there's a valid seek index
253+
.chain((events) =>
254+
fc.record({
255+
events: fc.constant(events),
256+
seekIndex: fc.integer({ min: 0, max: events.length - 1 }),
257+
}),
258+
),
259+
])(
263260
'should get audit events with a random seek index (property-based)',
264261
async ({ events, seekIndex }) => {
265262
// Insert the random events and store the generated AuditEventIds
@@ -312,11 +309,9 @@ describe('nodesAuditEventsGet', () => {
312309
},
313310
);
314311

315-
test.prop(
316-
[
317-
testNodesUtils.randomAuditEventsArb(2) // At least 2 so there's a valid seek index
318-
],
319-
)(
312+
test.prop([
313+
testNodesUtils.randomAuditEventsArb(2), // At least 2 so there's a valid seek index
314+
])(
320315
'should get audit events with specific seek at index 0 (exclude the first event) [property-based]',
321316
async (events) => {
322317
const eventIds: Array<AuditEventId> = [];
@@ -364,11 +359,9 @@ describe('nodesAuditEventsGet', () => {
364359
},
365360
);
366361

367-
test.prop(
368-
[
369-
testNodesUtils.randomAuditEventsArb(1) // At least 1 event, so "last index" = length-1 is valid
370-
],
371-
)(
362+
test.prop([
363+
testNodesUtils.randomAuditEventsArb(1), // At least 1 event, so "last index" = length-1 is valid
364+
])(
372365
'should get audit events with specific seek at last index (exclude the last event) [property-based]',
373366
async (events) => {
374367
// 1) Insert them all

tests/nodes/utils.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,6 @@ const randomAuditEventsArb = (minLength: number = 1, maxLength: number = 100) =>
331331
{ minLength, maxLength },
332332
);
333333

334-
335334
export type { NCMState };
336335

337336
export {

0 commit comments

Comments
 (0)