From 06e335799e129a2f2e38381d17c4297a03d21d03 Mon Sep 17 00:00:00 2001 From: Alexander Wang Date: Mon, 25 Mar 2024 20:52:47 -0500 Subject: [PATCH] add test --- d2oracle/edit_test.go | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/d2oracle/edit_test.go b/d2oracle/edit_test.go index 3bb567b13..c34f72e39 100644 --- a/d2oracle/edit_test.go +++ b/d2oracle/edit_test.go @@ -2454,6 +2454,29 @@ a -> b exp: `(* -> *)[*].style.stroke: red a -> b: {style.stroke: green} a -> b +`, + }, + { + name: "nested-edge-chained", + + text: `a: { + b: { + c + } +} + +x -> a.b -> a.b.c +`, + key: `(a.b -> a.b.c)[0].style.stroke`, + value: go2.Pointer(`green`), + exp: `a: { + b: { + c + } +} + +x -> a.b -> a.b.c +(a.b -> a.b.c)[0].style.stroke: green `, }, }