From 49f745be689ebf63639530ebf26daad62790a563 Mon Sep 17 00:00:00 2001 From: James Read Date: Thu, 18 Jul 2024 13:08:36 +0100 Subject: [PATCH] fmt: Set for setdir (#367) --- internal/config/config_helpers_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/internal/config/config_helpers_test.go b/internal/config/config_helpers_test.go index 9109458..8dcde69 100644 --- a/internal/config/config_helpers_test.go +++ b/internal/config/config_helpers_test.go @@ -44,3 +44,10 @@ func TestFindAcl(t *testing.T) { assert.NotNil(t, c.FindAcl("Testing ACL"), "Find a ACL that should exist") assert.Nil(t, c.FindAcl("Chocolate Cake"), "Find a ACL that does not exist") } + +func TestSetDir(t *testing.T) { + c := DefaultConfig() + c.SetDir("test") + + assert.Equal(t, "test", c.GetDir(), "SetDir") +}