Prechádzať zdrojové kódy

fmt: Set for setdir (#367)

James Read 1 rok pred
rodič
commit
49f745be68
1 zmenil súbory, kde vykonal 7 pridanie a 0 odobranie
  1. 7 0
      internal/config/config_helpers_test.go

+ 7 - 0
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.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")
 	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")
+}