import { commonCustomCasesAdapterTests } from '~/data/use-cases/validation-builder-adapter/custom-cases-adapters/tests/helpers'; import { DocumentValidatorAdapter, EmailValidatorAdapter, NameValidatorAdapter, PhoneValidatorAdapter, PriceValidatorAdapter, UuidValidatorAdapter, } from '~/data/use-cases/validation-builder-adapter/custom-cases-adapters/use-cases'; describe('CustomValidatorAdapters Test', () => { describe('string', () => { const TARGET_SCHEMA = 'string' as const; describe('DocumentValidatorAdapter Test', () => { commonCustomCasesAdapterTests(TARGET_SCHEMA, 'document', DocumentValidatorAdapter); }); describe('EmailValidatorAdapter Test', () => { commonCustomCasesAdapterTests(TARGET_SCHEMA, 'email', EmailValidatorAdapter); }); describe('NameValidatorAdapter Test', () => { commonCustomCasesAdapterTests(TARGET_SCHEMA, 'name', NameValidatorAdapter); }); describe('PhoneValidatorAdapter Test', () => { commonCustomCasesAdapterTests(TARGET_SCHEMA, 'phone', PhoneValidatorAdapter); }); describe('UuidValidatorAdapter Test', () => { commonCustomCasesAdapterTests(TARGET_SCHEMA, 'uuid', UuidValidatorAdapter); }); }); describe('number', () => { const TARGET_SCHEMA = 'number' as const; describe('PriceValidatorAdapter Test', () => { commonCustomCasesAdapterTests(TARGET_SCHEMA, 'price', PriceValidatorAdapter); }); }); });