Skip to content

Commit 9ecb436

Browse files
committed
Fix lint
1 parent d3f044d commit 9ecb436

File tree

3 files changed

+13
-19
lines changed

3 files changed

+13
-19
lines changed

job/lamdaHandler.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ exports.handler = async (event: APIGatewayProxyEvent) => {
77
await updatePaymentExtensionAccessToken();
88

99
return {
10-
statusCode: 200
11-
}
10+
statusCode: 200,
11+
};
1212
} catch (error: any) {
1313
return {
1414
statusCode: 400,
15-
error: error
16-
}
15+
error: error,
16+
};
1717
}
18-
};
18+
};

job/src/service/job.service.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { getAccessToken } from "../commercetools/auth.commercetools";
2-
import { updatePaymentExtension } from "../commercetools/extensions.commercetools";
3-
import { logger } from "../utils/logger.utils";
1+
import { getAccessToken } from '../commercetools/auth.commercetools';
2+
import { updatePaymentExtension } from '../commercetools/extensions.commercetools';
3+
import { logger } from '../utils/logger.utils';
44

55
export const updatePaymentExtensionAccessToken = async () => {
66
logger.info('SCTM - job - starting updating access token process');
7-
7+
88
const accessToken = await getAccessToken();
99
await updatePaymentExtension(accessToken?.access_token as string);
1010

1111
logger.info('SCTM - job - end process');
12-
}
12+
};

job/tests/service/job.service.spec.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
import {
2-
describe,
3-
jest,
4-
afterEach,
5-
it,
6-
expect,
7-
} from '@jest/globals';
1+
import { describe, jest, afterEach, it, expect } from '@jest/globals';
82
import { logger } from '../../src/utils/logger.utils';
93
import { updatePaymentExtensionAccessToken } from '../../src/service/job.service';
104
import { getAccessToken } from '../../src/commercetools/auth.commercetools';
@@ -29,5 +23,5 @@ describe('Test job.service.ts', () => {
2923
expect(getAccessToken).toBeCalledTimes(1);
3024
expect(updatePaymentExtension).toBeCalledTimes(1);
3125
expect(logger.info).toBeCalledTimes(2);
32-
})
33-
})
26+
});
27+
});

0 commit comments

Comments
 (0)