mirror of
https://github.com/project-zot/zot.git
synced 2026-06-16 04:17:55 +08:00
23 lines
410 B
Go
23 lines
410 B
Go
package main_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/anuvu/zot/pkg/api"
|
|
"github.com/anuvu/zot/pkg/cli"
|
|
. "github.com/smartystreets/goconvey/convey"
|
|
)
|
|
|
|
func TestIntegration(t *testing.T) {
|
|
Convey("Make a new controller", t, func() {
|
|
config := api.NewConfig()
|
|
c := api.NewController(config)
|
|
So(c, ShouldNotBeNil)
|
|
|
|
cl := cli.NewRootCmd()
|
|
So(cl, ShouldNotBeNil)
|
|
|
|
So(cl.Execute(), ShouldBeNil)
|
|
})
|
|
}
|