fix tests

This commit is contained in:
Alexander Wang 2024-07-18 16:18:41 -06:00
parent a880647227
commit 13e6a6047d
No known key found for this signature in database
GPG key ID: BE3937D0D52D8927
2 changed files with 19 additions and 0 deletions

View file

@ -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

View file

@ -79,6 +79,9 @@
"string": "*",
"raw_string": "*"
}
],
"pattern": [
"*"
]
}
},