From a78aa8cfa680c576c326c17c28b15dd9636b8df3 Mon Sep 17 00:00:00 2001 From: Naveen Gogineni Date: Mon, 17 Apr 2023 10:06:31 -0400 Subject: [PATCH] Update tests --- fish_test.go | 11 ++++++----- testdata/expected-doc-full.man | 2 +- testdata/expected-doc-full.md | 2 +- testdata/expected-doc-no-authors.md | 2 +- testdata/expected-doc-no-commands.md | 2 +- testdata/expected-doc-no-usagetext.md | 2 +- 6 files changed, 11 insertions(+), 10 deletions(-) diff --git a/fish_test.go b/fish_test.go index d28b0d4202..da68164174 100644 --- a/fish_test.go +++ b/fish_test.go @@ -27,11 +27,12 @@ func testApp() *App { app.Name = "greet" app.Flags = []Flag{ &StringFlag{ - Name: "socket", - Aliases: []string{"s"}, - Usage: "some 'usage' text", - Value: "value", - TakesFile: true, + Name: "socket", + Aliases: []string{"s"}, + Usage: "some 'usage' text", + Value: "value", + DefaultText: "svalue", + TakesFile: true, }, &StringFlag{Name: "flag", Aliases: []string{"fl", "f"}}, &BoolFlag{ diff --git a/testdata/expected-doc-full.man b/testdata/expected-doc-full.man index a2131f0f55..bfae3a175c 100644 --- a/testdata/expected-doc-full.man +++ b/testdata/expected-doc-full.man @@ -47,7 +47,7 @@ app [first_arg] [second_arg] \fB--flag, --fl, -f\fP="": .PP -\fB--socket, -s\fP="": some 'usage' text (default: value) +\fB--socket, -s\fP="": some 'usage' text (default: svalue) .SH COMMANDS diff --git a/testdata/expected-doc-full.md b/testdata/expected-doc-full.md index 80ff6a7a68..8f79818ba8 100644 --- a/testdata/expected-doc-full.md +++ b/testdata/expected-doc-full.md @@ -28,7 +28,7 @@ app [first_arg] [second_arg] **--flag, --fl, -f**="": -**--socket, -s**="": some 'usage' text (default: value) +**--socket, -s**="": some 'usage' text (default: svalue) # COMMANDS diff --git a/testdata/expected-doc-no-authors.md b/testdata/expected-doc-no-authors.md index 80ff6a7a68..8f79818ba8 100644 --- a/testdata/expected-doc-no-authors.md +++ b/testdata/expected-doc-no-authors.md @@ -28,7 +28,7 @@ app [first_arg] [second_arg] **--flag, --fl, -f**="": -**--socket, -s**="": some 'usage' text (default: value) +**--socket, -s**="": some 'usage' text (default: svalue) # COMMANDS diff --git a/testdata/expected-doc-no-commands.md b/testdata/expected-doc-no-commands.md index 4db2a375ec..3e285f2d42 100644 --- a/testdata/expected-doc-no-commands.md +++ b/testdata/expected-doc-no-commands.md @@ -28,5 +28,5 @@ app [first_arg] [second_arg] **--flag, --fl, -f**="": -**--socket, -s**="": some 'usage' text (default: value) +**--socket, -s**="": some 'usage' text (default: svalue) diff --git a/testdata/expected-doc-no-usagetext.md b/testdata/expected-doc-no-usagetext.md index d09b69fb6b..8354f4c629 100644 --- a/testdata/expected-doc-no-usagetext.md +++ b/testdata/expected-doc-no-usagetext.md @@ -28,7 +28,7 @@ greet [GLOBAL OPTIONS] command [COMMAND OPTIONS] [ARGUMENTS...] **--flag, --fl, -f**="": -**--socket, -s**="": some 'usage' text (default: value) +**--socket, -s**="": some 'usage' text (default: svalue) # COMMANDS