Skip to content

Commit

Permalink
feat(2737): formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
koekiebox committed Aug 4, 2024
1 parent a24a6b7 commit 4093058
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions packages/backend/src/telemetry/service.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,11 +266,9 @@ describe('TelemetryServiceImpl', () => {
.mockImplementation(() =>
Promise.resolve(ConvertError.InvalidDestinationPrice)
)
const internalConvertSpy = jest
.spyOn(internalRatesService, 'convert')
const internalConvertSpy = jest.spyOn(internalRatesService, 'convert')

const spyIncCounter = jest
.spyOn(telemetryService, 'incrementCounter')
const spyIncCounter = jest.spyOn(telemetryService, 'incrementCounter')

await telemetryService.incrementCounterWithTransactionFeeAmount(
'test_fee_counter',
Expand All @@ -292,10 +290,8 @@ describe('TelemetryServiceImpl', () => {
})

it('should not record fee negative fee value', async () => {
const spyConvert = jest
.spyOn(aseRatesService, 'convert')
const spyIncCounter = jest
.spyOn(telemetryService, 'incrementCounter')
const spyConvert = jest.spyOn(aseRatesService, 'convert')
const spyIncCounter = jest.spyOn(telemetryService, 'incrementCounter')

await telemetryService.incrementCounterWithTransactionFeeAmount(
'test_fee_counter',
Expand All @@ -316,10 +312,8 @@ describe('TelemetryServiceImpl', () => {
})

it('should not record zero amounts', async () => {
const spyConvert = jest
.spyOn(aseRatesService, 'convert')
const spyIncCounter = jest
.spyOn(telemetryService, 'incrementCounter')
const spyConvert = jest.spyOn(aseRatesService, 'convert')
const spyIncCounter = jest.spyOn(telemetryService, 'incrementCounter')

await telemetryService.incrementCounterWithTransactionFeeAmount(
'test_fee_counter',
Expand All @@ -340,10 +334,8 @@ describe('TelemetryServiceImpl', () => {
})

it('should record since it is a valid fee', async () => {
const spyConvert = jest
.spyOn(aseRatesService, 'convert')
const spyIncCounter = jest
.spyOn(telemetryService, 'incrementCounter')
const spyConvert = jest.spyOn(aseRatesService, 'convert')
const spyIncCounter = jest.spyOn(telemetryService, 'incrementCounter')

await telemetryService.incrementCounterWithTransactionFeeAmount(
'test_fee_counter',
Expand Down

0 comments on commit 4093058

Please sign in to comment.