diff options
| author | Peter Stone <thepeterstone@gmail.com> | 2026-01-20 11:17:19 -1000 |
|---|---|---|
| committer | Peter Stone <thepeterstone@gmail.com> | 2026-01-20 11:17:19 -1000 |
| commit | 07ba815e8517ee2d3a5fa531361bbd09bdfcbaa7 (patch) | |
| tree | ca9d9be0f02d5a724a3646f87d4a9f50203249cc /internal/handlers/template_test.go | |
| parent | 6a59098c3096f5ebd3a61ef5268cbd480b0f1519 (diff) | |
Remove Obsidian integration for public server deployment
Obsidian relied on local filesystem access which is incompatible with
public server deployment. This removes all Obsidian-related code including:
- API client and interface
- Store layer methods (SaveNotes, GetNotes, SearchNotes)
- Handler methods and routes
- UI tab and templates
- Configuration fields
- Related tests
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Diffstat (limited to 'internal/handlers/template_test.go')
| -rw-r--r-- | internal/handlers/template_test.go | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/internal/handlers/template_test.go b/internal/handlers/template_test.go deleted file mode 100644 index b0b2378..0000000 --- a/internal/handlers/template_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package handlers_test - -import ( - "html/template" - "io" - "testing" - "task-dashboard/internal/models" -) - -func TestNotesTemplateRendering(t *testing.T) { - // Parse templates (adjust paths relative to where test runs, usually package root) - // Since we run 'go test ./...', paths might need to be absolute or relative to project root if we use a helper. - // But standard 'go test' in a subdir uses that subdir as CWD. - // We will assume the test runs from 'internal/handlers'. - // So paths are "../../web/templates/..." - - tmpl, err := template.ParseGlob("../../web/templates/*.html") - if err != nil { - t.Fatalf("Failed to parse templates: %v", err) - } - tmpl, err = tmpl.ParseGlob("../../web/templates/partials/*.html") - if err != nil { - t.Fatalf("Failed to parse partials: %v", err) - } - - // Define the data structure we EXPECT to use (with Errors) - data := struct { - Notes []models.Note - Errors []string - }{ - Notes: []models.Note{}, - Errors: []string{"Test Error"}, - } - - // Execute - err = tmpl.ExecuteTemplate(io.Discard, "notes-tab", data) - if err != nil { - t.Errorf("Failed to render notes-tab with corrected data: %v", err) - } -} |
