diff options
| author | Gabriel Schneider <[email protected]> | 2026-08-02 17:38:06 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-08-02 23:11:01 -0300 |
| commit | a9263daee9413c5eff3c1f1bebcd224442fd8685 (patch) | |
| tree | f0a74fe1420cd9933cb2f85dc8313914aa674e94 /vrsite/app_test.go | |
| parent | e16f78b255bcf46d8c6f9a4b9e76dd7a3817edeb (diff) | |
| download | notevi-a9263daee9413c5eff3c1f1bebcd224442fd8685.tar.gz notevi-a9263daee9413c5eff3c1f1bebcd224442fd8685.zip | |
vrsite: toggle repository file list
Diffstat (limited to 'vrsite/app_test.go')
| -rw-r--r-- | vrsite/app_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vrsite/app_test.go b/vrsite/app_test.go index 1ee7209..876e253 100644 --- a/vrsite/app_test.go +++ b/vrsite/app_test.go @@ -391,6 +391,8 @@ func TestServerPages(t *testing.T) { h := sv.handler() for _, tc := range []struct{ path, want string }{ {"/", "second line matters"}, + {"/", `id="filetoggle"`}, + {"/", `id="filelist"`}, {"/files", "hello.txt"}, {"/tree", `class="file`}, {"/notes", "second line matters"}, @@ -398,9 +400,11 @@ func TestServerPages(t *testing.T) { {"/jj", "revset"}, {"/change/" + change, "first change"}, {"/style.css", ".am1 {"}, + {"/style.css", `data-files="hidden"`}, {"/themes.css", `:root[data-theme="zed/one-light"]`}, {"/themes.js", "VRSITE_THEMES"}, {"/app.js", "vrsite-mode"}, + {"/app.js", "vrsite-files-hidden"}, {"/htmx.min.js", "htmx"}, } { w := get(t, h, tc.path, false) |
