reimplement
This commit is contained in:
parent
09d1ec6314
commit
e1eecf7c7b
1 changed files with 12 additions and 1 deletions
|
|
@ -3011,7 +3011,7 @@ a
|
||||||
run func(t *testing.T)
|
run func(t *testing.T)
|
||||||
}{
|
}{
|
||||||
{
|
{
|
||||||
name: "connection",
|
name: "delete-connection",
|
||||||
run: func(t *testing.T) {
|
run: func(t *testing.T) {
|
||||||
g := assertCompile(t, `
|
g := assertCompile(t, `
|
||||||
x -> y
|
x -> y
|
||||||
|
|
@ -3021,6 +3021,17 @@ y: null
|
||||||
assert.Equal(t, 0, len(g.Edges))
|
assert.Equal(t, 0, len(g.Edges))
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "no-delete-connection",
|
||||||
|
run: func(t *testing.T) {
|
||||||
|
g := assertCompile(t, `
|
||||||
|
y: null
|
||||||
|
x -> y
|
||||||
|
`, "")
|
||||||
|
assert.Equal(t, 2, len(g.Objects))
|
||||||
|
assert.Equal(t, 1, len(g.Edges))
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, tc := range tca {
|
for _, tc := range tca {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue