Skip to content

Commit 127cee2

Browse files
authored
fix: lint issues (#113)
1 parent f92c410 commit 127cee2

File tree

5 files changed

+4
-5
lines changed

5 files changed

+4
-5
lines changed

src/services/associate-roles.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ describe('Associate roles query', () => {
3535
expect(response.status).toBe(200)
3636
expect(response.body.count).toBe(1)
3737

38-
const associateRole = response.body.results[0] as AssociateRole
38+
associateRole = response.body.results[0] as AssociateRole
3939

4040
expect(associateRole.key).toBe('example-role-associate-role')
4141
})

src/services/business-units.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ describe('Business units query', () => {
3535
expect(response.status).toBe(200)
3636
expect(response.body.count).toBe(1)
3737

38-
const businessUnit = response.body.results[0] as BusinessUnit
38+
businessUnit = response.body.results[0] as BusinessUnit
3939

4040
expect(businessUnit.key).toBe('example-business-unit')
4141
})

src/services/category.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ describe('Categories Query', () => {
4242
expect(response.status).toBe(200)
4343
expect(response.body.count).toBe(1)
4444

45-
const category = response.body.results[0] as Category
45+
category = response.body.results[0] as Category
4646

4747
expect(category.name.en).toBe('Top hat')
4848
})

src/services/customer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export class CustomerService extends AbstractService {
2727
? // @ts-ignore
2828
+request.params.ttlMinutes
2929
: 34560
30+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
3031
const { version, ...rest } = getBaseResourceProperties()
3132

3233
return response.status(200).send({

src/services/product.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ describe('Product', () => {
163163
describe('Product update actions', () => {
164164
const ctMock = new CommercetoolsMock()
165165
let productPublished: Product | undefined
166-
let productUnpublished: Product | undefined
167166

168167
beforeEach(async () => {
169168
let response
@@ -179,7 +178,6 @@ describe('Product update actions', () => {
179178
.send(unpublishedProductDraft)
180179

181180
expect(response.status).toBe(201)
182-
productUnpublished = response.body
183181
})
184182

185183
test('setAttribute masterVariant (staged)', async () => {

0 commit comments

Comments
 (0)