aboutsummaryrefslogtreecommitdiff
path: root/handler_test.go
diff options
context:
space:
mode:
authorGravatar Abhinav Gupta <mail@abhinavg.net> 2023-01-23 09:53:51 -0800
committerGravatar GitHub <noreply@github.com> 2023-01-23 09:53:51 -0800
commit9a95dcbf6ef077808a8874beea9d8a2754e60051 (patch)
tree91bfce08d9ffc3e4f9870eb18aa03c57dfba1b5f /handler_test.go
parentcb4081162b75508710f625b5b8dac0c48c813355 (diff)
downloadsally-9a95dcbf6ef077808a8874beea9d8a2754e60051.tar.gz
sally-9a95dcbf6ef077808a8874beea9d8a2754e60051.tar.zst
sally-9a95dcbf6ef077808a8874beea9d8a2754e60051.zip
Add support for package descriptions (#68)
* template: Use a more fluid layout Instead of using a table, take advantage of the grid layout. We still print a table of sorts, but it's more fluid in appearance based on width of the screen. On narrower screens, we'll show a listing where each item has a description label next to it rather than at the top. * Add support for package descrpitions Packages may now optionally specify a description. If specified, this is printed below the package information, indented one column to make it stand out. Co-authored-by: Sung Yoon Whang <sungyoonwhang@gmail.com>
Diffstat (limited to 'handler_test.go')
-rw-r--r--handler_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/handler_test.go b/handler_test.go
index 96a10dd..e300d19 100644
--- a/handler_test.go
+++ b/handler_test.go
@@ -17,6 +17,7 @@ packages:
zap:
url: go.uberalt.org
repo: github.com/uber-go/zap
+ description: A fast, structured logging library.
`
@@ -27,6 +28,7 @@ func TestIndex(t *testing.T) {
body := rr.Body.String()
assert.Contains(t, body, "github.com/thriftrw/thriftrw-go")
assert.Contains(t, body, "github.com/yarpc/yarpc-go")
+ assert.Contains(t, body, "A fast, structured logging library.")
}
func TestPackageShouldExist(t *testing.T) {