mirror of
https://github.com/iLoveElysia/openbilibili.git
synced 2026-06-08 05:58:29 -05:00
20 lines
337 B
Go
20 lines
337 B
Go
|
|
package http
|
||
|
|
|
||
|
|
import (
|
||
|
|
"context"
|
||
|
|
"testing"
|
||
|
|
|
||
|
|
"go-common/app/admin/main/aegis/model"
|
||
|
|
|
||
|
|
"github.com/smartystreets/goconvey/convey"
|
||
|
|
)
|
||
|
|
|
||
|
|
func TestSyncResource(t *testing.T) {
|
||
|
|
var (
|
||
|
|
c = context.TODO()
|
||
|
|
)
|
||
|
|
convey.Convey("SyncResource", t, func(ctx convey.C) {
|
||
|
|
d.SyncResource(c, &model.Action{}, map[string]interface{}{"state": 1})
|
||
|
|
})
|
||
|
|
}
|