diff --git a/d2renderers/d2sketch/sketch_test.go b/d2renderers/d2sketch/sketch_test.go index 1d6f44b82..ae7c94049 100644 --- a/d2renderers/d2sketch/sketch_test.go +++ b/d2renderers/d2sketch/sketch_test.go @@ -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) } diff --git a/d2renderers/d2sketch/testdata/class_and_sqlTable_border_radius/sketch.exp.svg b/d2renderers/d2sketch/testdata/class_and_sqlTable_border_radius/sketch.exp.svg new file mode 100644 index 000000000..e747821c9 --- /dev/null +++ b/d2renderers/d2sketch/testdata/class_and_sqlTable_border_radius/sketch.exp.svg @@ -0,0 +1,46 @@ + + + + + + + + +aidintPKdiskintFKjsonjsonbUNQlast_updatedtimestamp with time zoneb+field[]string+method(a uint64)(x, y int)cd + + + \ No newline at end of file