mirror of
https://github.com/qdm12/ddns-updater.git
synced 2026-03-31 06:24:00 -04:00
test(config): take into account the OS specific file separator (#985)
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
package config
|
package config
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"path/filepath"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
@@ -14,7 +15,7 @@ func Test_Settings_String(t *testing.T) {
|
|||||||
|
|
||||||
s := defaultSettings.String()
|
s := defaultSettings.String()
|
||||||
|
|
||||||
const expected = `Settings summary:
|
expected := `Settings summary:
|
||||||
├── HTTP client
|
├── HTTP client
|
||||||
| └── Timeout: 20s
|
| └── Timeout: 20s
|
||||||
├── Update
|
├── Update
|
||||||
@@ -40,7 +41,7 @@ func Test_Settings_String(t *testing.T) {
|
|||||||
| └── Server is disabled
|
| └── Server is disabled
|
||||||
├── Paths
|
├── Paths
|
||||||
| ├── Data directory: ./data
|
| ├── Data directory: ./data
|
||||||
| ├── Config file: data/config.json
|
| ├── Config file: ` + filepath.Join("data", "config.json") + `
|
||||||
| └── Umask: system default
|
| └── Umask: system default
|
||||||
├── Backup: disabled
|
├── Backup: disabled
|
||||||
└── Logger
|
└── Logger
|
||||||
|
|||||||
Reference in New Issue
Block a user