assertInvalidFieldValueError(error, props) {
    props.name = "InvalidFieldValueError";
    props.type = "validation";
    props.code = "invalid_field_value";

    errors.assertShipEngineError(error, props);

    expect(error.fieldName)
      .to.be.a("string")
      .equal(props.fieldName)
      .with.length.above(0);
    expect(error).to.include.keys("fieldValue");
    expect(error.fieldValue).to.equal(props.fieldValue);
  }
/**
   * Asserts that an error is a valid InvalidFieldValueError with the expected values
   */
Asserts that an error is a valid InvalidFieldValueError with the expected values
Asserts that an error is a valid InvalidFieldValueError with the expected values
assertInvalidFieldValueError(error, props) {
    props.name = "InvalidFieldValueError";
    props.type = "validation";
    props.code = "invalid_field_value";
    errors.assertShipEngineError(error, props);
    expect(error.fieldName)
      .to.be.a("string")
      .equal(props.fieldName)
      .with.length.above(0);
    expect(error).to.include.keys("fieldValue");
    expect(error.fieldValue).to.equal(props.fieldValue);
  }
assertInvalidFieldValueError ( error , props ) { props . name = "InvalidFieldValueError" ; props . type = "validation" ; props . code = "invalid_field_value" ; errors . assertShipEngineError ( error , props ) ; expect ( error . fieldName ) . to . be . a ( "string" ) . equal ( props . fieldName ) . with . length . above ( 0 ) ; expect ( error ) . to . include . keys ( "fieldValue" ) ; expect ( error . fieldValue ) . to . equal ( props . fieldValue ) ; }
Asserts that an error is a valid InvalidFieldValueError with the expected values
Asserts that an error is a valid InvalidFieldValueError with the expected values