Browse Source

add a test case

pull/5750/head
chrislu 6 months ago
parent
commit
f3d708d3b6
  1. 12
      weed/server/filer_ui/breadcrumb_test.go

12
weed/server/filer_ui/breadcrumb_test.go

@ -14,6 +14,18 @@ func TestToBreadcrumb(t *testing.T) {
args args
wantCrumbs []Breadcrumb
}{
{
name: "empty",
args: args{
fullpath: "",
},
wantCrumbs: []Breadcrumb{
{
Name: "/",
Link: "/",
},
},
},
{
name: "test1",
args: args{

Loading…
Cancel
Save