go: rename module from github.com/facebook/ent => entgo.io/ent (#1226)

This commit is contained in:
Ariel Mashraki
2021-02-02 23:03:04 +02:00
committed by GitHub
parent 7a2173f20d
commit dd4792f5b3
1087 changed files with 3956 additions and 3956 deletions

View File

@@ -7,7 +7,7 @@ package load
import (
"testing"
"github.com/facebook/ent/schema/field"
"entgo.io/ent/schema/field"
"github.com/stretchr/testify/require"
)
@@ -17,7 +17,7 @@ func TestLoad(t *testing.T) {
spec, err := cfg.Load()
require.NoError(t, err)
require.Len(t, spec.Schemas, 3)
require.Equal(t, "github.com/facebook/ent/entc/load/testdata/valid", spec.PkgPath)
require.Equal(t, "entgo.io/ent/entc/load/testdata/valid", spec.PkgPath)
require.Equal(t, "Group", spec.Schemas[0].Name, "ordered alphabetically")
require.Equal(t, "Tag", spec.Schemas[1].Name)
@@ -37,7 +37,7 @@ func TestLoadSpecific(t *testing.T) {
require.NoError(t, err)
require.Len(t, spec.Schemas, 1)
require.Equal(t, "User", spec.Schemas[0].Name)
require.Equal(t, "github.com/facebook/ent/entc/load/testdata/valid", spec.PkgPath)
require.Equal(t, "entgo.io/ent/entc/load/testdata/valid", spec.PkgPath)
}
func TestLoadNoSchema(t *testing.T) {