正在显示
4 个修改的文件
包含
30 行增加
和
31 行删除
| 1 | +package user | ||
| 1 | 2 | ||
| 2 | -package user-favorite-menus | ||
| 3 | import ( | 3 | import ( |
| 4 | -"github.com/gavv/httpexpect" | ||
| 5 | -"github.com/go-pg/pg/v10" | ||
| 6 | -pG "gitlab.fjmaimaimai.com/allied-creation/allied-creation-user/pkg/infrastructure/pg" | ||
| 7 | -. "github.com/onsi/ginkgo" | ||
| 8 | -. "github.com/onsi/gomega" | ||
| 9 | -"net/http" | 4 | + "github.com/gavv/httpexpect" |
| 5 | + "github.com/go-pg/pg/v10" | ||
| 6 | + . "github.com/onsi/ginkgo" | ||
| 7 | + . "github.com/onsi/gomega" | ||
| 8 | + pG "gitlab.fjmaimaimai.com/allied-creation/allied-creation-user/pkg/infrastructure/pg" | ||
| 9 | + "net/http" | ||
| 10 | ) | 10 | ) |
| 11 | 11 | ||
| 12 | var _ = Describe("移除我收藏的菜单", func() { | 12 | var _ = Describe("移除我收藏的菜单", func() { |
| 1 | +package user | ||
| 1 | 2 | ||
| 2 | -package user-favorite-menus | ||
| 3 | import ( | 3 | import ( |
| 4 | -"github.com/gavv/httpexpect" | ||
| 5 | -"github.com/go-pg/pg/v10" | ||
| 6 | -pG "gitlab.fjmaimaimai.com/allied-creation/allied-creation-user/pkg/infrastructure/pg" | ||
| 7 | -. "github.com/onsi/ginkgo" | ||
| 8 | -. "github.com/onsi/gomega" | ||
| 9 | -"net/http" | 4 | + "github.com/gavv/httpexpect" |
| 5 | + "github.com/go-pg/pg/v10" | ||
| 6 | + . "github.com/onsi/ginkgo" | ||
| 7 | + . "github.com/onsi/gomega" | ||
| 8 | + pG "gitlab.fjmaimaimai.com/allied-creation/allied-creation-user/pkg/infrastructure/pg" | ||
| 9 | + "net/http" | ||
| 10 | ) | 10 | ) |
| 11 | 11 | ||
| 12 | var _ = Describe("获取我收藏的菜单", func() { | 12 | var _ = Describe("获取我收藏的菜单", func() { |
| 1 | +package user | ||
| 1 | 2 | ||
| 2 | -package user-favorite-menus | ||
| 3 | import ( | 3 | import ( |
| 4 | -"github.com/gavv/httpexpect" | ||
| 5 | -"github.com/go-pg/pg/v10" | ||
| 6 | -pG "gitlab.fjmaimaimai.com/allied-creation/allied-creation-user/pkg/infrastructure/pg" | ||
| 7 | -. "github.com/onsi/ginkgo" | ||
| 8 | -. "github.com/onsi/gomega" | ||
| 9 | -"net/http" | 4 | + "github.com/gavv/httpexpect" |
| 5 | + "github.com/go-pg/pg/v10" | ||
| 6 | + . "github.com/onsi/ginkgo" | ||
| 7 | + . "github.com/onsi/gomega" | ||
| 8 | + pG "gitlab.fjmaimaimai.com/allied-creation/allied-creation-user/pkg/infrastructure/pg" | ||
| 9 | + "net/http" | ||
| 10 | ) | 10 | ) |
| 11 | 11 | ||
| 12 | var _ = Describe("更新我喜欢菜单列表", func() { | 12 | var _ = Describe("更新我喜欢菜单列表", func() { |
| 1 | +package user | ||
| 1 | 2 | ||
| 2 | -package user-favorite-menus | ||
| 3 | import ( | 3 | import ( |
| 4 | -"github.com/beego/beego/v2/server/web" | ||
| 5 | -. "github.com/onsi/ginkgo" | ||
| 6 | -. "github.com/onsi/gomega" | ||
| 7 | -"net/http" | ||
| 8 | -"net/http/httptest" | ||
| 9 | -_ "gitlab.fjmaimaimai.com/allied-creation/allied-creation-user/pkg/application" | ||
| 10 | -_ "gitlab.fjmaimaimai.com/allied-creation/allied-creation-user/pkg/infrastructure/pg" | ||
| 11 | -_ "gitlab.fjmaimaimai.com/allied-creation/allied-creation-user/pkg/port/beego" | ||
| 12 | -"testing" | 4 | + "github.com/beego/beego/v2/server/web" |
| 5 | + . "github.com/onsi/ginkgo" | ||
| 6 | + . "github.com/onsi/gomega" | ||
| 7 | + _ "gitlab.fjmaimaimai.com/allied-creation/allied-creation-user/pkg/infrastructure/pg" | ||
| 8 | + _ "gitlab.fjmaimaimai.com/allied-creation/allied-creation-user/pkg/port/beego" | ||
| 9 | + "net/http" | ||
| 10 | + "net/http/httptest" | ||
| 11 | + "testing" | ||
| 13 | ) | 12 | ) |
| 14 | 13 | ||
| 15 | func TestUserFavoriteMenus(t *testing.T) { | 14 | func TestUserFavoriteMenus(t *testing.T) { |
-
请 注册 或 登录 后发表评论