fix tests
This commit is contained in:
parent
a880647227
commit
13e6a6047d
2 changed files with 19 additions and 0 deletions
|
|
@ -4607,6 +4607,22 @@ a -> b
|
|||
style.underline: true
|
||||
}
|
||||
|
||||
x
|
||||
y.link: https://google.com
|
||||
`, ``)
|
||||
assert.Equal(t, (*d2graph.Scalar)(nil), g.Objects[0].Attributes.Style.Underline)
|
||||
assert.Equal(t, "true", g.Objects[1].Attributes.Style.Underline.Value)
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "glob-filter",
|
||||
run: func(t *testing.T) {
|
||||
g, _ := assertCompile(t, `
|
||||
*: {
|
||||
&link: *google*
|
||||
style.underline: true
|
||||
}
|
||||
|
||||
x
|
||||
y.link: https://google.com
|
||||
z.link: https://yahoo.com
|
||||
|
|
|
|||
3
testdata/d2oracle/TestSet/edge-arrowhead-filled/2.exp.json
generated
vendored
3
testdata/d2oracle/TestSet/edge-arrowhead-filled/2.exp.json
generated
vendored
|
|
@ -79,6 +79,9 @@
|
|||
"string": "*",
|
||||
"raw_string": "*"
|
||||
}
|
||||
],
|
||||
"pattern": [
|
||||
"*"
|
||||
]
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue