Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
LandonTClipp committed Nov 19, 2024
1 parent 025665a commit c3a9cee
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions pkg/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -921,9 +921,10 @@ func TestNewConfigFromViper(t *testing.T) {
return viper.New()
},
want: &Config{
Case: "camel",
Dir: ".",
Output: "./mocks",
Case: "camel",
Dir: ".",
Output: "./mocks",
ResolveTypeAlias: true,
},
},
{
Expand All @@ -940,6 +941,7 @@ packages:
Outpkg: "{{.PackageName}}",
WithExpecter: true,
LogLevel: "info",
ResolveTypeAlias: true,
},
},
{
Expand All @@ -958,6 +960,7 @@ packages:
Outpkg: "{{.PackageName}}",
WithExpecter: true,
LogLevel: "info",
ResolveTypeAlias: true,
},
},
}
Expand Down Expand Up @@ -991,7 +994,7 @@ packages:
tt.want._cfgAsMap = nil

if !reflect.DeepEqual(got, tt.want) {
t.Errorf("NewConfigFromViper() = %v, want %v", got, tt.want)
t.Errorf("NewConfigFromViper() = %+v, want %+v", got, tt.want)
}
})
}
Expand Down

0 comments on commit c3a9cee

Please sign in to comment.