Skip to content

Commit

Permalink
fix tests after changes with Misc
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianczech committed Mar 22, 2024
1 parent e5bcd38 commit 55e281a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/translate/funcs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ func TestSpecifyEntryAssignmentForNestedObject(t *testing.T) {
if o.A != nil {
if o.A.B != nil {
nestedA.B = &SpecABXml{}
if o.A.B.Misc != nil {
nestedA.B.Misc = o.A.B.Misc["AB"]
}
if o.A.B.C != nil {
nestedA.B.C = o.A.B.C
}
Expand Down Expand Up @@ -139,6 +142,9 @@ func TestNormalizeAssignmentForNestedObject(t *testing.T) {
if o.A != nil {
if o.A.B != nil {
nestedA.B = &SpecAB{}
if o.A.B.Misc != nil {
nestedA.B.Misc["AB"] = o.A.B.Misc
}
if o.A.B.C != nil {
nestedA.B.C = o.A.B.C
}
Expand Down

0 comments on commit 55e281a

Please sign in to comment.