summaryrefslogtreecommitdiff
path: root/internal/resource/dir/dir_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/resource/dir/dir_test.go')
-rw-r--r--internal/resource/dir/dir_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/resource/dir/dir_test.go b/internal/resource/dir/dir_test.go
index ca01535..5ffb5cf 100644
--- a/internal/resource/dir/dir_test.go
+++ b/internal/resource/dir/dir_test.go
@@ -6,6 +6,7 @@ import (
"testing"
"codeberg.org/snonux/gonf/internal/resource/file"
+ . "codeberg.org/snonux/gonf/internal/resource/opt"
)
func TestHaveDirectoryCreate(t *testing.T) {
@@ -296,7 +297,7 @@ func TestSourceCopyParamMatchesSingleFilePath(t *testing.T) {
}
singleTarget := filepath.Join(tmp, "single.conf")
- if err := file.Ensure(singleTarget, file.WithSource(sourcePath)); err != nil {
+ if err := file.Ensure(singleTarget, WithSource(sourcePath)); err != nil {
t.Fatal(err)
}
viaFile, err := os.ReadFile(singleTarget)