aboutsummaryrefslogtreecommitdiff
path: root/watcher_test.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2026-01-23 15:33:13 +0700
committerShulhan <ms@kilabit.info>2026-01-24 07:11:24 +0700
commit62c2e03409e8f7bc6f3f20df36603344afaf2b3a (patch)
tree0235899db041244ecabc754ca636d7bbd651d1e0 /watcher_test.go
parent8970c0fef45c87c183a27f8a66d9620fdb6daa1e (diff)
downloadciigo-62c2e03409e8f7bc6f3f20df36603344afaf2b3a.tar.xz
all: embed CSS and index HTML template using memfs
Previously, with direct embed, every time we change the CSS or index template, we need to restart the "ciigo serve" command. Using memfs make us easy to update and see the changes directly, without restarting the server.
Diffstat (limited to 'watcher_test.go')
-rw-r--r--watcher_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/watcher_test.go b/watcher_test.go
index 1b9f3fa..64bb08c 100644
--- a/watcher_test.go
+++ b/watcher_test.go
@@ -105,7 +105,7 @@ func testAdocCreate(t *testing.T, testWatcher *watcher, tdata *test.Data, pathFi
t.Fatal(err)
}
- gotBody = removeFooter(gotBody, 15)
+ gotBody = removeFooter(gotBody, 17)
expBody = tdata.Output[`create.adoc.html`]
test.Assert(t, `HTML body`, string(expBody), string(gotBody))
@@ -135,7 +135,7 @@ func testAdocUpdate(t *testing.T, testWatcher *watcher, tdata *test.Data, pathFi
t.Fatal(err)
}
- gotBody = removeFooter(gotBody, 15)
+ gotBody = removeFooter(gotBody, 17)
expBody = tdata.Output[`update.adoc.html`]
test.Assert(t, `HTML body`, string(expBody), string(gotBody))
@@ -186,7 +186,7 @@ func testMarkdownCreate(t *testing.T, testWatcher *watcher, tdata *test.Data, pa
if err != nil {
t.Fatal(err)
}
- gotBody = removeFooter(gotBody, 8)
+ gotBody = removeFooter(gotBody, 10)
expBody = string(tdata.Output[`create.md.html`])
test.Assert(t, `HTML body`, expBody, string(gotBody))
@@ -216,7 +216,7 @@ func testMarkdownUpdate(t *testing.T, testWatcher *watcher, tdata *test.Data, pa
if err != nil {
t.Fatal(err)
}
- gotBody = removeFooter(gotBody, 8)
+ gotBody = removeFooter(gotBody, 10)
expBody = string(tdata.Output[`update.md.html`])
test.Assert(t, `HTML body`, expBody, string(gotBody))