diff --git a/lib/domain/constants/MealType.js b/lib/domain/constants/MealType.mjs similarity index 100% rename from lib/domain/constants/MealType.js rename to lib/domain/constants/MealType.mjs diff --git a/lib/interfaces/converters/LegacyTransactionConverter.mjs b/lib/interfaces/converters/LegacyTransactionConverter.mjs index 0d25ea38..05301cf1 100644 --- a/lib/interfaces/converters/LegacyTransactionConverter.mjs +++ b/lib/interfaces/converters/LegacyTransactionConverter.mjs @@ -22,7 +22,7 @@ import DiscountTransaction from '../../domain/entities/DiscountTransaction'; import timeUtil from '../../common/utils/timeUtil'; import logger from '../../common/utils/logger'; import cafeCodeToCafeteriaId from '../legacy/isBarcode/cafeCode.mjs'; -import MealType from '../../domain/constants/MealType.js'; +import MealType from '../../domain/constants/MealType.mjs'; /** * Convert legacy payment queries(barcode, code, menu, payment) to diff --git a/lib/interfaces/validators/DiscountTransactionValidatorImpl.mjs b/lib/interfaces/validators/DiscountTransactionValidatorImpl.mjs index 0c4b0ffd..ad1fb3cf 100644 --- a/lib/interfaces/validators/DiscountTransactionValidatorImpl.mjs +++ b/lib/interfaces/validators/DiscountTransactionValidatorImpl.mjs @@ -24,7 +24,7 @@ import config from '../../../config'; import moment from 'moment'; import logger from '../../common/utils/logger'; import timeUtil from '../../common/utils/timeUtil'; -import MealType from '../../domain/constants/MealType.js'; +import MealType from '../../domain/constants/MealType.mjs'; /** * This class is responsible for validating a discount transaction request. diff --git a/test/unit/interfaces/converters/LegacyTransactionConverterImpl.test.mjs b/test/unit/interfaces/converters/LegacyTransactionConverterImpl.test.mjs index ec953d4e..1c885f5a 100644 --- a/test/unit/interfaces/converters/LegacyTransactionConverterImpl.test.mjs +++ b/test/unit/interfaces/converters/LegacyTransactionConverterImpl.test.mjs @@ -22,7 +22,7 @@ import LegacyTransactionConverter from '../../../../lib/interfaces/converters/Le import DiscountTransaction from '../../../../lib/domain/entities/DiscountTransaction'; import TransactionRepositoryMock from '../../../mocks/TransactionRepositoryMock'; import MockDate from 'mockdate'; -import MealType from '../../../../lib/domain/constants/MealType.js'; +import MealType from '../../../../lib/domain/constants/MealType.mjs'; describe('# Convert', () => { const converter = new LegacyTransactionConverter({ diff --git a/test/unit/interfaces/validators/DiscountTransactionValidatorImpl.test.mjs b/test/unit/interfaces/validators/DiscountTransactionValidatorImpl.test.mjs index 3a6f44c7..4b643ca3 100644 --- a/test/unit/interfaces/validators/DiscountTransactionValidatorImpl.test.mjs +++ b/test/unit/interfaces/validators/DiscountTransactionValidatorImpl.test.mjs @@ -35,7 +35,7 @@ import TokenManagerMock from '../../../mocks/TokenManagerMock'; import TokenManager from '../../../../lib/domain/security/TokenManager'; import moment from 'moment'; import MockDate from 'mockdate'; -import MealType from '../../../../lib/domain/constants/MealType.js'; +import MealType from '../../../../lib/domain/constants/MealType.mjs'; beforeEach(async () => { await initWithOverrides(modules, [