Skip to content

Commit

Permalink
changed transformError
Browse files Browse the repository at this point in the history
  • Loading branch information
dimacgka committed Dec 3, 2024
1 parent ea77889 commit 03b16ac
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions options_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,13 @@ func TestWithMultipleOptionsWithErrorsTransformer(t *testing.T) {
if v.transformError == nil {
t.Errorf("expected transformError to be set")
}

opt2 := WithErrorsTransformer(nil)

v2 := New(opt2)
opt2.apply(v2)

if v2.transformError == nil {
t.Errorf("expected transformError to be set")
}
}

0 comments on commit 03b16ac

Please sign in to comment.