1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Test NewModuleValidator func

This commit is contained in:
Jason Schweier 2020-10-08 18:17:30 -04:00
parent b1022d6d18
commit 4205327b95
2 changed files with 12 additions and 2 deletions

View File

@ -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.

View File

@ -0,0 +1,11 @@
package app
import (
"testing"
"github.com/stretchr/testify/assert"
)
func Test_NewModuleValidator(t *testing.T) {
assert.IsType(t, &ModuleValidator{}, NewModuleValidator())
}