Skip to content

Commit 4672f5a

Browse files
author
Zoo (VP)
committed
fix(types): prefix unused destructured vars with underscore in usage-stats tests
1 parent 9e0b062 commit 4672f5a

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎packages/types/src/__tests__/usage-stats.spec.ts‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ describe("usage-stats schemas", () => {
117117
})
118118

119119
it("should reject missing semantics", () => {
120-
const { semantics, ...withoutSemantics } = validEvent
120+
const { semantics: _semantics, ...withoutSemantics } = validEvent
121121
expect(() => UsageEventV1.parse(withoutSemantics)).toThrow()
122122
})
123123

@@ -126,7 +126,7 @@ describe("usage-stats schemas", () => {
126126
})
127127

128128
it("should reject missing required fields (eventId)", () => {
129-
const { eventId, ...withoutEventId } = validEvent
129+
const { eventId: _eventId, ...withoutEventId } = validEvent
130130
expect(() => UsageEventV1.parse(withoutEventId)).toThrow()
131131
})
132132

@@ -242,7 +242,7 @@ describe("usage-stats schemas", () => {
242242
})
243243

244244
it("should reject missing required numeric field", () => {
245-
const { costUsd, ...withoutCost } = validBucket
245+
const { costUsd: _costUsd, ...withoutCost } = validBucket
246246
expect(() => StatsBucket.parse(withoutCost)).toThrow()
247247
})
248248

@@ -311,12 +311,12 @@ describe("usage-stats schemas", () => {
311311
})
312312

313313
it("should reject missing coverage", () => {
314-
const { coverage, ...withoutCoverage } = validSnapshot
314+
const { coverage: _coverage, ...withoutCoverage } = validSnapshot
315315
expect(() => StatsSnapshot.parse(withoutCoverage)).toThrow()
316316
})
317317

318318
it("should reject missing totals", () => {
319-
const { totals, ...withoutTotals } = validSnapshot
319+
const { totals: _totals, ...withoutTotals } = validSnapshot
320320
expect(() => StatsSnapshot.parse(withoutTotals)).toThrow()
321321
})
322322
})

0 commit comments

Comments
 (0)