diff --git a/internal/commands/show_thumb_sizes_test.go b/internal/commands/show_thumb_sizes_test.go new file mode 100644 index 000000000..95a95bd07 --- /dev/null +++ b/internal/commands/show_thumb_sizes_test.go @@ -0,0 +1,26 @@ +package commands + +import ( + "github.com/photoprism/photoprism/internal/config" + "github.com/photoprism/photoprism/pkg/capture" + "github.com/stretchr/testify/assert" + "testing" +) + +func TestShowThumbSizesCommand(t *testing.T) { + var err error + + ctx := config.CliTestContext() + + output := capture.Output(func() { + err = ShowThumbSizesCommand.Run(ctx) + }) + + if err != nil { + t.Fatal(err) + } + + assert.Contains(t, output, "fit_2048") + assert.Contains(t, output, "Mosaic View") + assert.Contains(t, output, "Color Detection") +} diff --git a/internal/commands/show_video_sizes_test.go b/internal/commands/show_video_sizes_test.go new file mode 100644 index 000000000..b47b43458 --- /dev/null +++ b/internal/commands/show_video_sizes_test.go @@ -0,0 +1,26 @@ +package commands + +import ( + "github.com/photoprism/photoprism/internal/config" + "github.com/photoprism/photoprism/pkg/capture" + "github.com/stretchr/testify/assert" + "testing" +) + +func TestShowVideoSizesCommand(t *testing.T) { + var err error + + ctx := config.CliTestContext() + + output := capture.Output(func() { + err = ShowVideoSizesCommand.Run(ctx) + }) + + if err != nil { + t.Fatal(err) + } + + assert.Contains(t, output, "3840") + assert.Contains(t, output, "7680") + assert.Contains(t, output, "4K Ultra HD") +}