mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-21 16:01:22 +02:00
test(middleware): update bypass and rule tests
This commit is contained in:
@@ -42,7 +42,7 @@ func TestParseCommands(t *testing.T) {
|
||||
// serve tests
|
||||
{
|
||||
name: "serve_valid",
|
||||
input: "serve /var/www",
|
||||
input: "serve /",
|
||||
wantErr: nil,
|
||||
},
|
||||
{
|
||||
@@ -50,6 +50,11 @@ func TestParseCommands(t *testing.T) {
|
||||
input: "serve ",
|
||||
wantErr: ErrInvalidArguments,
|
||||
},
|
||||
{
|
||||
name: "serve_non_exist_path",
|
||||
input: "serve /non-exist-path",
|
||||
wantErr: ErrInvalidArguments,
|
||||
},
|
||||
{
|
||||
name: "serve_too_many_args",
|
||||
input: "serve / / /",
|
||||
|
||||
Reference in New Issue
Block a user