mirror of https://github.com/databricks/cli.git
19 lines
470 B
Go
19 lines
470 B
Go
package mutator_test
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
|
|
"github.com/databricks/bricks/bundle"
|
|
"github.com/databricks/bricks/bundle/config/mutator"
|
|
"github.com/stretchr/testify/assert"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestDefaultInclude(t *testing.T) {
|
|
bundle := &bundle.Bundle{}
|
|
_, err := mutator.DefineDefaultInclude().Apply(context.Background(), bundle)
|
|
require.NoError(t, err)
|
|
assert.Equal(t, []string{"*.yml", "*/*.yml"}, bundle.Config.Include)
|
|
}
|