github.com/hellofresh/janus@v0.0.0-20230925145208-ce8de8183c67/pkg/plugin/compression/setup_test.go (about) 1 package compression 2 3 import ( 4 "testing" 5 6 "github.com/hellofresh/janus/pkg/plugin" 7 "github.com/hellofresh/janus/pkg/proxy" 8 "github.com/stretchr/testify/assert" 9 ) 10 11 func TestSetup(t *testing.T) { 12 def := proxy.NewRouterDefinition(proxy.NewDefinition()) 13 err := setupCompression(def, make(plugin.Config)) 14 assert.NoError(t, err) 15 16 assert.Len(t, def.Middleware(), 1) 17 }