diff options
| author | Shulhan <ms@kilabit.info> | 2025-07-31 00:27:20 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2025-07-31 00:27:20 +0700 |
| commit | b6fec02b55a4227b6ecb47c2bc40a5a025af2b8a (patch) | |
| tree | 36956ce1c9c51027f6af3982c3c6add0cc596f80 /lilin_test.go | |
| parent | 0537c5e094c7b6e5ff376ccdf0dba80adf5c4342 (diff) | |
| download | lilin-b6fec02b55a4227b6ecb47c2bc40a5a025af2b8a.tar.xz | |
all: refactoring web page to render using template
Instead of using HTML and JavaScript, generate the web page using
template.
This minimize number of works we do in the future (creating client
in JavaScript and HTTP APIs).
Diffstat (limited to 'lilin_test.go')
| -rw-r--r-- | lilin_test.go | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/lilin_test.go b/lilin_test.go index fe951a0..3e1899d 100644 --- a/lilin_test.go +++ b/lilin_test.go @@ -14,7 +14,6 @@ import ( "git.sr.ht/~shulhan/lilin" "git.sr.ht/~shulhan/lilin/internal" "git.sr.ht/~shulhan/pakakeh.go/lib/net" - "git.sr.ht/~shulhan/pakakeh.go/lib/test" ) var client *lilin.Client @@ -104,16 +103,3 @@ func dummyHTTPService() { log.Fatal(err) } } - -func TestServer_handleServicesSummary(t *testing.T) { - var gotSummary []lilin.Service - var err error - - gotSummary, err = client.ServicesSummary() - if err != nil { - t.Fatal(err) - } - - var expSummary = []lilin.Service{{}, {}, {}} - test.Assert(t, `ServicesSummary`, expSummary, gotSummary) -} |
