github.com/moleculer-go/moleculer@v0.3.3/cli/cli_test.go (about) 1 package cli 2 3 import ( 4 . "github.com/onsi/ginkgo" 5 ) 6 7 var _ = Describe("Cli", func() { 8 9 Describe("Loading Configuration", func() { 10 It("shuold load config file and pass it on to the broker", func() { 11 // Start( 12 // &moleculer.Config{}, 13 // func(broker *broker.ServiceBroker, cmd *cobra.Command) { 14 // broker.Publish(moleculer.ServiceSchema{ 15 // Name: "user", 16 // Started: func(c moleculer.BrokerContext, svc moleculer.ServiceSchema) { 17 // Expect(svc.Settings["table"]).Should(Equal("userTable")) 18 // Expect(svc.Settings["idField"]).Should(Equal("id")) 19 // close(done) 20 // }, 21 // }) 22 // }) 23 }) 24 }) 25 26 })