import { expectResult, getMakeSut, getAnyString } from './helpers'; describe('Integration - String Tests', () => { const makeSut = getMakeSut('string'); describe('if no rules are set, should allow all kinds of strings', () => { const cases = getAnyString(); cases.forEach(testCase => { test(`should allow [ ${testCase} ]`, () => { const { sut } = makeSut(); expectResult(sut.validate(testCase)).toBeValid(); }); }); }); });