diff options
| author | Dave Henderson <dhenderson@gmail.com> | 2024-06-09 19:25:17 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-09 19:25:17 -0400 |
| commit | 47b74a5505d4c9979d24a8bcffde711a60c5f23a (patch) | |
| tree | 479b4331848c549d69d0e2ba1f228dddb2069402 /context_test.go | |
| parent | dc41e375484759c09e0480b10a30f6f80318bb56 (diff) | |
chore(api)!: Overhauling config and rendering types (#2094)
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'context_test.go')
| -rw-r--r-- | context_test.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/context_test.go b/context_test.go index 903a0fc7..a0985be9 100644 --- a/context_test.go +++ b/context_test.go @@ -7,7 +7,6 @@ import ( "testing" "github.com/hairyhenderson/go-fsimpl" - "github.com/hairyhenderson/gomplate/v4/internal/config" "github.com/hairyhenderson/gomplate/v4/internal/datafs" "github.com/stretchr/testify/assert" @@ -46,8 +45,8 @@ func TestCreateContext(t *testing.T) { uf, _ := url.Parse(fooURL) ub, _ := url.Parse(barURL) - reg.Register("foo", config.DataSource{URL: uf}) - reg.Register(".", config.DataSource{URL: ub}) + reg.Register("foo", DataSource{URL: uf}) + reg.Register(".", DataSource{URL: ub}) t.Setenv("foo", "foo: bar") c, err = createTmplContext(ctx, []string{"foo"}, sr) |
