summaryrefslogtreecommitdiff
path: root/internal/config/blackbox_test.go
blob: 0d9766052fb4ca8ebb1912dc96c86d003c9eede2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package config_test

import (
	"testing"

	"codeberg.org/snonux/timr/internal/config"
)

func TestDefaultPublicAPI(t *testing.T) {
	cfg := config.Default()
	if cfg.WeekWorkHours <= 0 {
		t.Fatalf("WeekWorkHours = %v, want positive value", cfg.WeekWorkHours)
	}
	if cfg.WorktimeDBDir == "" {
		t.Fatal("WorktimeDBDir is empty")
	}
}