import { FieldValidation } from '@/validation/protocols' ; export class FieldValidationSpy implements FieldValidation { error : Error = null ; constructor ( readonly field ) { } validate ( input ) { return this . error ; } }