@@ -17,6 +17,7 @@ func TestFullAndIncrementalBuild(t *testing.T) { |
| 17 |
runGit(t, dir, "config", "user.name", "Site Test") |
17 |
runGit(t, dir, "config", "user.name", "Site Test") |
| 18 |
runGit(t, dir, "config", "user.email", "[email protected]") |
18 |
runGit(t, dir, "config", "user.email", "[email protected]") |
| 19 |
write(t, dir, "README.md", "# Hello bucket\n") |
19 |
write(t, dir, "README.md", "# Hello bucket\n") |
|
|
20 |
write(t, dir, "docs/guide.md", "# Guide\n\n- first\n- second\n") |
| 20 |
write(t, dir, "src/main.go", "package main\n\nfunc main() {}\n") |
21 |
write(t, dir, "src/main.go", "package main\n\nfunc main() {}\n") |
| 21 |
runGit(t, dir, "add", ".") |
22 |
runGit(t, dir, "add", ".") |
| 22 |
runGit(t, dir, "commit", "-m", "initial") |
23 |
runGit(t, dir, "commit", "-m", "initial") |
@@ -44,6 +45,10 @@ func TestFullAndIncrementalBuild(t *testing.T) { |
| 44 |
assertPage(t, full, "", "octicon-folder") |
45 |
assertPage(t, full, "", "octicon-folder") |
| 45 |
assertPage(t, full, "blob/main/src/main.go", "chroma") |
46 |
assertPage(t, full, "blob/main/src/main.go", "chroma") |
| 46 |
assertPage(t, full, "blob/main/src/main.go", "data-file-tree") |
47 |
assertPage(t, full, "blob/main/src/main.go", "data-file-tree") |
|
|
48 |
assertPage(t, full, "blob/main/docs/guide.md", `<article class="markdown-file">`) |
|
|
49 |
assertPage(t, full, "blob/main/docs/guide.md", `<h1 id="guide">Guide</h1>`) |
|
|
50 |
assertPage(t, full, "blob/main/docs/guide.md", "<li>first</li>") |
|
|
51 |
assertPageDoesNotContain(t, full, "blob/main/docs/guide.md", `<div class="code-view">`) |
| 47 |
assertPage(t, full, ".dumbforge/assets/gabriel-mark.svg", "<svg") |
52 |
assertPage(t, full, ".dumbforge/assets/gabriel-mark.svg", "<svg") |
| 48 |
assertPage(t, full, ".dumbforge/assets/gabriel-mark.png", "PNG") |
53 |
assertPage(t, full, ".dumbforge/assets/gabriel-mark.png", "PNG") |
| 49 |
assertPage(t, full, "tree/main/src", "main.go") |
54 |
assertPage(t, full, "tree/main/src", "main.go") |