diff --git a/app/module_validator.go b/app/module_validator.go index bf594164..b5ebf7dc 100644 --- a/app/module_validator.go +++ b/app/module_validator.go @@ -11,8 +11,7 @@ import ( type ModuleValidator struct{} func NewModuleValidator() *ModuleValidator { - val := &ModuleValidator{} - return val + return &ModuleValidator{} } // Validate rolls through all the enabled widgets and looks for configuration errors. diff --git a/app/module_validator_test.go b/app/module_validator_test.go new file mode 100644 index 00000000..39914bd1 --- /dev/null +++ b/app/module_validator_test.go @@ -0,0 +1,11 @@ +package app + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +func Test_NewModuleValidator(t *testing.T) { + assert.IsType(t, &ModuleValidator{}, NewModuleValidator()) +}