Skip to content

Commit 374f385

Browse files
committed
test: verify 000000000 errors without FRB compat
1 parent ed33325 commit 374f385

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

checkDetailAddendumA_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,10 +266,13 @@ func TestCDAddendumAFIReturnLocationRoutingNumberZero(t *testing.T) {
266266
func TestCDAddendumAFIReturnLocationRoutingNumberZeroFRB(t *testing.T) {
267267
cdAddendumA := mockCheckDetailAddendumA()
268268
cdAddendumA.ReturnLocationRoutingNumber = "000000000"
269+
269270
// enable FRB mode and verify it passes
270271
t.Setenv(FRBCompatibilityMode, "true")
271272
require.NoError(t, cdAddendumA.Validate())
273+
272274
t.Setenv(FRBCompatibilityMode, "")
275+
require.ErrorContains(t, cdAddendumA.Validate(), "ReturnLocationRoutingNumber")
273276
}
274277

275278
// TestCDAddendumAFIBOFDEndorsementDate validation

0 commit comments

Comments
 (0)