fix compiler test

This commit is contained in:
Alexander Wang 2022-12-02 19:55:49 -08:00
parent 6a5c1e6d4b
commit 6213150433
No known key found for this signature in database
GPG key ID: D89FA31966BDBECE
2 changed files with 12 additions and 6 deletions

View file

@ -1561,7 +1561,10 @@ dst.id <-> src.dst_id
text: `x -> x
`,
assertions: func(t *testing.T, g *d2graph.Graph) {
diff.AssertStringEq(t, g.Edges[0].Dst.ID, g.Edges[0].Src.ID)
_, err := diff.Strings(g.Edges[0].Dst.ID, g.Edges[0].Src.ID)
if err != nil {
t.Fatal(err)
}
},
},
}

View file

@ -68,9 +68,10 @@
"value": ""
},
"direction": {
"value": "down"
"value": ""
}
}
},
"zIndex": 0
},
"edges": [
{
@ -101,7 +102,8 @@
"direction": {
"value": ""
}
}
},
"zIndex": 0
}
],
"objects": [
@ -164,9 +166,10 @@
"value": ""
},
"direction": {
"value": "down"
"value": ""
}
}
},
"zIndex": 0
}
]
},