Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
mzanoni committed Jun 13, 2024
1 parent d4fb154 commit 2d525c2
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 21 deletions.
14 changes: 1 addition & 13 deletions full-sync/src/client/create.client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,4 @@ export const createApiRoot = ((root?: ByProjectKeyRequestBuilder) => () => {
});

return root;
})();

// /**
// * Example code to get the Project details
// * This code has the same effect as sending a GET
// * request to the commercetools Composable Commerce API without any endpoints.
// *
// * @returns {Promise<ClientResponse<Project>>} apiRoot
// */
// Not used right now
// export const getProject = async () => {
// return await createApiRoot().get().execute();
// };
})();
1 change: 0 additions & 1 deletion full-sync/tests/infrastructure/config.util.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { readConfiguration } from '../../src/infrastructure/utils/config.utils';

describe('readConfiguration', () => {
it('should throw an error with missing config', () => {

const t = () => {
readConfiguration();
};
Expand Down
3 changes: 0 additions & 3 deletions full-sync/tests/infrastructure/relewise.clients.spec.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import { createIntegrator } from '../../src/infrastructure/relewise.clients';
//import * as configUtils from '../../src/infrastructure/utils/config.utils';
import { Integrator } from '@relewise/integrations';
import { readConfiguration } from '../../src/infrastructure/utils/config.utils';
import CustomError from '../../src/infrastructure/errors/custom.error';

jest.mock('../../src/infrastructure/utils/config.utils', () => ({
readConfiguration: jest.fn(() => ({
Expand Down
3 changes: 1 addition & 2 deletions full-sync/tests/routes/sync.routes.spec.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// @ts-ignore
import request from 'supertest';
import server from '../../src/index';
import CustomError from '../../src/infrastructure/errors/custom.error';
import { HTTP_STATUS_BAD_REQUEST, HTTP_STATUS_SUCCESS_NO_CONTENT } from '../../src/infrastructure/constants/http.status';
import { HTTP_STATUS_SUCCESS_NO_CONTENT } from '../../src/infrastructure/constants/http.status';

jest.mock('../../src/infrastructure/utils/config.utils', () => ({
readConfiguration: jest.fn(() => ({
Expand Down
2 changes: 0 additions & 2 deletions full-sync/tests/validators.spec.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@

import envValidators from '../src/infrastructure/validators/env.validators';
import {

getValidateMessages,

} from '../src/infrastructure/validators/helpers.validators';

describe('Validators', () => {
Expand Down

0 comments on commit 2d525c2

Please sign in to comment.