aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/datamaps/config_test.go
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-07-22 21:01:54 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2020-07-22 21:01:54 +0100
commitd7d4d0a0476f98d1b0b4c5c454b6d1048a82bdad (patch)
tree11aaba3bab132e3f7d13f73c61d8b14739794f50 /pkg/datamaps/config_test.go
parentc3d4c6bb51a3d7b89e0fcbb69230db423577ae17 (diff)
more major surgery
Diffstat (limited to 'pkg/datamaps/config_test.go')
-rw-r--r--pkg/datamaps/config_test.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkg/datamaps/config_test.go b/pkg/datamaps/config_test.go
new file mode 100644
index 0000000..6fb8cc4
--- /dev/null
+++ b/pkg/datamaps/config_test.go
@@ -0,0 +1,10 @@
+package datamaps
+
+import "testing"
+
+func Test_getUserConfigDir(t *testing.T) {
+ dir, _ := getUserConfigDir()
+ if dir != "/home/lemon/.config/datamaps-go" {
+ t.Errorf("Did not find the correct directory - found %s instead\n", dir)
+ }
+}