imagorvideoextended/config_test.go
Failure f348bb92e3
Some checks are pending
docker / Docker (push) Waiting to run
test / Test (push) Waiting to run
remove video specific stuff, base off of video, and add support for HTML
2024-07-30 02:34:01 -07:00

17 lines
437 B
Go

package imagorvideoextended
import (
"github.com/cshum/imagor"
"github.com/cshum/imagor/config"
"github.com/stretchr/testify/assert"
"testing"
)
func TestConfig(t *testing.T) {
srv := config.CreateServer([]string{
"-ffmpeg-fallback-image", "https://foo.com/bar.jpg",
}, Config)
app := srv.App.(*imagor.Imagor)
processor := app.Processors[0].(*Processor)
assert.Equal(t, "https://foo.com/bar.jpg", processor.FallbackImage)
}