import { expectResult, getMakeSut, getAnyArray } from './helpers'; describe('Integration - Array Tests', () => { const makeSut = getMakeSut('array'); describe('if no rules are set, should allow all kinds of arrays', () => { const cases = getAnyArray(); cases.forEach(testCase => { const name = testCase ? JSON.stringify(testCase) : String(testCase); test(`should allow [ ${name} ]`, () => { const { sut } = makeSut(); const result = sut.validate(testCase); expectResult(result).toBeValid(); }); }); }); });