From abc03ae616635cddcb6ad276d5fe5572135e68b8 Mon Sep 17 00:00:00 2001 From: Alexander Wang Date: Sat, 1 Jun 2024 23:12:30 -0700 Subject: [PATCH] add test --- d2oracle/edit_test.go | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/d2oracle/edit_test.go b/d2oracle/edit_test.go index cda153960..798d1d0d3 100644 --- a/d2oracle/edit_test.go +++ b/d2oracle/edit_test.go @@ -2518,6 +2518,38 @@ x -> a.b -> a.b.c # hi style.stroke: green } +`, + }, + { + name: "scenario-grandchild", + + text: `a -> b + +scenarios: { + x: { + scenarios: { + c: { + (a -> b)[0].style.bold: true + } + } + } +} +`, + key: `(a -> b)[0].style.stroke-width`, + value: go2.Pointer(`3`), + boardPath: []string{"x", "c"}, + exp: `a -> b + +scenarios: { + x: { + scenarios: { + c: { + (a -> b)[0].style.bold: true + (a -> b)[0].style.stroke-width: 3 + } + } + } +} `, }, }