From ce3d54030ddd2c432e04dfe2b8071eea4267f1fb Mon Sep 17 00:00:00 2001 From: Dennis Jekubczyk Date: Mon, 24 May 2021 13:08:40 +0200 Subject: [PATCH] esnure default config is valid --- internal/config/read_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/internal/config/read_test.go b/internal/config/read_test.go index cf241eb..09c7d06 100644 --- a/internal/config/read_test.go +++ b/internal/config/read_test.go @@ -20,6 +20,14 @@ var _ = Describe("Read", func() { os.Clearenv() }) + It("parses valid configuration", func() { + aValidEnv() + + c, err := config.Read() + Expect(err).NotTo(HaveOccurred()) + Expect(c).ToNot(BeNil()) + }) + Context("Gitea", func() { It("parses configuration", func() { aValidEnv()