refactor(10.2-01): nest framework packages under modules
- Move remaining beach packages and embedded admin assets\n- Rewrite framework, example, build, and gate paths
This commit is contained in:
16
modules/lagoon/relations_test.go
Normal file
16
modules/lagoon/relations_test.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package lagoon
|
||||
|
||||
import (
|
||||
"strings"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestRegisterJoinTableNilDB(t *testing.T) {
|
||||
err := RegisterJoinTable(nil, struct{}{}, "Artists", struct{}{})
|
||||
if err == nil {
|
||||
t.Fatal("want non-nil error")
|
||||
}
|
||||
if !strings.Contains(err.Error(), "nil") {
|
||||
t.Fatalf("got %v", err)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user