From 405f1c9777bff77ce8347ff6d306a2850b5660f4 Mon Sep 17 00:00:00 2001 From: Gavin Nishizawa Date: Fri, 9 Jun 2023 14:10:04 -0700 Subject: [PATCH] add test --- d2compiler/compile_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/d2compiler/compile_test.go b/d2compiler/compile_test.go index 19f41a60b..56f5b0088 100644 --- a/d2compiler/compile_test.go +++ b/d2compiler/compile_test.go @@ -1505,6 +1505,11 @@ x -> y: { text: `x: {link: https://not-google.com; tooltip: https://google.com}`, expErr: `d2/testdata/d2compiler/TestCompile/no_url_link_and_url_tooltip_concurrently.d2:1:44: Tooltip cannot be set to URL when link is also set (for security)`, }, + { + name: "url_link_non_url_tooltip_ok", + text: `x: {link: https://not-google.com; tooltip: note: url.ParseRequestURI might see this as a URL}`, + expErr: ``, + }, { name: "url_link_and_not_url_tooltip_concurrently", text: `x: {link: https://google.com; tooltip: hello world}`,