Skip to content

Commit

Permalink
Add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
mkuratczyk committed Nov 21, 2024
1 parent 4303bb8 commit 3766c20
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ import (
)

var _ = Describe("OMQ CLI", func() {
Describe("executed without any commands/flags, displays its usage", func() {
It("should print help", func() {
session := omq([]string{})
Eventually(session).Should(gexec.Exit(0))
Eventually(session.Out).Should(gbytes.Say(`Available Commands:`))
Eventually(session.Out).Should(gbytes.Say(`Flags:`))
})
})

DescribeTable("supports any combination of protocols",
func(publishProto string, publishToPrefix string, consumeProto string, consumeFromPrefix string) {
publishTo := publishToPrefix + publishProto + consumeProto
Expand Down

0 comments on commit 3766c20

Please sign in to comment.