feat: add sketch_test testcase
This commit is contained in:
parent
c44701ac0a
commit
a87a46732b
2 changed files with 89 additions and 0 deletions
|
|
@ -1005,6 +1005,49 @@ normal: {
|
|||
something
|
||||
`,
|
||||
},
|
||||
{
|
||||
name: "class_and_sqlTable_border_radius",
|
||||
script: `
|
||||
a: {
|
||||
shape: sql_table
|
||||
id: int {constraint: primary_key}
|
||||
disk: int {constraint: foreign_key}
|
||||
|
||||
json: jsonb {constraint: unique}
|
||||
last_updated: timestamp with time zone
|
||||
|
||||
style: {
|
||||
fill: red
|
||||
border-radius: 0
|
||||
}
|
||||
}
|
||||
|
||||
b: {
|
||||
shape: class
|
||||
|
||||
field: "[]string"
|
||||
method(a uint64): (x, y int)
|
||||
|
||||
style: {
|
||||
border-radius: 0
|
||||
}
|
||||
}
|
||||
|
||||
c: {
|
||||
shape: class
|
||||
style: {
|
||||
border-radius: 0
|
||||
}
|
||||
}
|
||||
|
||||
d: {
|
||||
shape: sql_table
|
||||
style: {
|
||||
border-radius: 0
|
||||
}
|
||||
}
|
||||
`,
|
||||
},
|
||||
}
|
||||
runa(t, tcs)
|
||||
}
|
||||
|
|
|
|||
46
d2renderers/d2sketch/testdata/class_and_sqlTable_border_radius/sketch.exp.svg
vendored
Normal file
46
d2renderers/d2sketch/testdata/class_and_sqlTable_border_radius/sketch.exp.svg
vendored
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 283 KiB |
Loading…
Reference in a new issue