From eb4bae573d6236fd7490c2b17f395b189c755d29 Mon Sep 17 00:00:00 2001 From: "sunpeiyang.996" Date: Mon, 27 Jul 2026 20:41:51 +0800 Subject: [PATCH] test(docs): read enveloped dry-run output --- tests/cli_e2e/docs/docs_local_resources_dryrun_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/cli_e2e/docs/docs_local_resources_dryrun_test.go b/tests/cli_e2e/docs/docs_local_resources_dryrun_test.go index 02c80edd6..dc68fc0db 100644 --- a/tests/cli_e2e/docs/docs_local_resources_dryrun_test.go +++ b/tests/cli_e2e/docs/docs_local_resources_dryrun_test.go @@ -11,7 +11,6 @@ import ( clie2e "github.com/larksuite/cli/tests/cli_e2e" "github.com/stretchr/testify/require" - "github.com/tidwall/gjson" ) func TestDocs_LocalResourcesDryRun(t *testing.T) { @@ -65,7 +64,7 @@ func TestDocs_LocalResourcesDryRun(t *testing.T) { require.NoError(t, err) result.AssertExitCode(t, 0) - apis := gjson.Get(result.Stdout, "api").Array() + apis := clie2e.DryRunGet(result.Stdout, "api").Array() require.Len(t, apis, 6, "stdout:\n%s", result.Stdout) require.Equal(t, tt.wantDocumentURL, apis[0].Get("url").String(), "stdout:\n%s", result.Stdout)