(t *testing.T)
| 7 | ) |
| 8 | |
| 9 | func TestDefault(t *testing.T) { |
| 10 | cfg := Default() |
| 11 | if cfg.Worktree.Setup != "" { |
| 12 | t.Errorf("expected empty setup, got %q", cfg.Worktree.Setup) |
| 13 | } |
| 14 | if cfg.OnComplete.Push { |
| 15 | t.Error("expected Push to be false") |
| 16 | } |
| 17 | if cfg.OnComplete.CreatePR { |
| 18 | t.Error("expected CreatePR to be false") |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | func TestLoadNonExistent(t *testing.T) { |
| 23 | cfg, err := Load(t.TempDir()) |