mirror of
https://github.com/TECHNOFAB11/jsonnet-bundler.git
synced 2025-12-11 23:50:05 +01:00
Create LocalSource as type for local dependencies
This commit is contained in:
parent
6ee790d911
commit
07801936c0
6 changed files with 71 additions and 23 deletions
|
|
@ -22,7 +22,7 @@ import (
|
|||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestParseDepedency(t *testing.T) {
|
||||
func TestParseDependency(t *testing.T) {
|
||||
const testFolder = "test/jsonnet/foobar"
|
||||
err := os.MkdirAll(testFolder, os.ModePerm)
|
||||
if err != nil {
|
||||
|
|
@ -79,12 +79,11 @@ func TestParseDepedency(t *testing.T) {
|
|||
want: &spec.Dependency{
|
||||
Name: "foobar",
|
||||
Source: spec.Source{
|
||||
GitSource: &spec.GitSource{
|
||||
Remote: ".",
|
||||
Subdir: "test/jsonnet/foobar",
|
||||
LocalSource: &spec.LocalSource{
|
||||
Directory: "test/jsonnet/foobar",
|
||||
},
|
||||
},
|
||||
Version: ".",
|
||||
Version: "",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue