feat: update
This commit is contained in:
@@ -52,7 +52,7 @@ func (s *MediasTestSuite) Test_countByCondition() {
|
||||
Convey("no cond", func() {
|
||||
database.Truncate(context.Background(), db, table.Medias.TableName())
|
||||
|
||||
cnt, err := MediasModel().countByCondition(context.Background(), nil)
|
||||
cnt, err := MediasModel().Count(context.Background())
|
||||
Convey("should not return an error", func() {
|
||||
So(err, ShouldBeNil)
|
||||
})
|
||||
@@ -137,7 +137,7 @@ func (s *MediasTestSuite) Test_Create() {
|
||||
So(err, ShouldBeNil)
|
||||
})
|
||||
|
||||
cnt, err := MediasModel().countByCondition(context.Background(), nil)
|
||||
cnt, err := MediasModel().Count(context.Background())
|
||||
Convey("Count should not return an error", func() {
|
||||
So(err, ShouldBeNil)
|
||||
})
|
||||
@@ -169,7 +169,7 @@ func (s *MediasTestSuite) Test_Page() {
|
||||
So(err, ShouldBeNil)
|
||||
}
|
||||
|
||||
cnt, err := MediasModel().countByCondition(context.Background(), nil)
|
||||
cnt, err := MediasModel().Count(context.Background())
|
||||
So(err, ShouldBeNil)
|
||||
So(cnt, ShouldEqual, 20)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user