aboutsummaryrefslogtreecommitdiff
path: root/watcher_test.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2021-04-06 19:56:14 +0700
committerShulhan <ms@kilabit.info>2021-04-06 19:56:14 +0700
commita91a9f7d53391ec4cdd9602ebb8c7762b0150eb5 (patch)
tree22d9e3703cb3c77870c03f52f5db6902e6e27301 /watcher_test.go
parent2bc421270237bb902d5981f340369bd3bed59a7e (diff)
downloadciigo-a91a9f7d53391ec4cdd9602ebb8c7762b0150eb5.tar.xz
go.mod: set the minimum Go to 1.16 and update the dependencies
Diffstat (limited to 'watcher_test.go')
-rw-r--r--watcher_test.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/watcher_test.go b/watcher_test.go
index 0bceff1..2d6df9f 100644
--- a/watcher_test.go
+++ b/watcher_test.go
@@ -64,7 +64,7 @@ func testCreate(t *testing.T) {
got := waitChanges()
- test.Assert(t, "New adoc file created", testFileAdoc, got.path, true)
+ test.Assert(t, "New adoc file created", testFileAdoc, got.path)
expBody := `
<div id="header">
@@ -78,7 +78,7 @@ func testCreate(t *testing.T) {
</div>
</div>`
gotBody := removeFooter(string(got.fhtml.Body))
- test.Assert(t, "HTML body", expBody, gotBody, true)
+ test.Assert(t, "HTML body", expBody, gotBody)
}
func testUpdate(t *testing.T) {
@@ -92,7 +92,7 @@ func testUpdate(t *testing.T) {
}
got := waitChanges()
- test.Assert(t, "adoc file updated", testFileAdoc, got.path, true)
+ test.Assert(t, "adoc file updated", testFileAdoc, got.path)
expBody := `
<div id="header">
@@ -107,7 +107,7 @@ func testUpdate(t *testing.T) {
</div>
</div>`
gotBody := removeFooter(string(got.fhtml.Body))
- test.Assert(t, "HTML body", expBody, gotBody, true)
+ test.Assert(t, "HTML body", expBody, gotBody)
}
func testDelete(t *testing.T) {
@@ -122,10 +122,10 @@ func testDelete(t *testing.T) {
}
got := waitChanges()
- test.Assert(t, "adoc file updated", testFileAdoc, got.path, true)
+ test.Assert(t, "adoc file updated", testFileAdoc, got.path)
_, gotIsExist := testWatcher.fileMarkups[testFileAdoc]
- test.Assert(t, "adoc file deleted", false, gotIsExist, true)
+ test.Assert(t, "adoc file deleted", false, gotIsExist)
}
//