diff options
| author | Shulhan <ms@kilabit.info> | 2021-04-06 19:56:14 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2021-04-06 19:56:14 +0700 |
| commit | a91a9f7d53391ec4cdd9602ebb8c7762b0150eb5 (patch) | |
| tree | 22d9e3703cb3c77870c03f52f5db6902e6e27301 /watcher_test.go | |
| parent | 2bc421270237bb902d5981f340369bd3bed59a7e (diff) | |
| download | ciigo-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.go | 12 |
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) } // |
