databricks-cli/bundle/config/mutator/default_include_test.go

18 lines
429 B
Go

package mutator_test
import (
"testing"
"github.com/databricks/bricks/bundle/config"
"github.com/databricks/bricks/bundle/config/mutator"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
func TestDefaultInclude(t *testing.T) {
root := &config.Root{}
_, err := mutator.DefineDefaultInclude().Apply(root)
require.NoError(t, err)
assert.Equal(t, []string{"*.yml", "*/*.yml"}, root.Include)
}