From efb30fe1032245f701a20b28328d10daeae24711 Mon Sep 17 00:00:00 2001 From: sdghchj Date: Wed, 17 Jan 2024 11:39:22 +0800 Subject: [PATCH] fix tests Signed-off-by: sdghchj --- parser_test.go | 8 ++++---- testdata/simple/expected.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/parser_test.go b/parser_test.go index d4d061d14..770e64bc0 100644 --- a/parser_test.go +++ b/parser_test.go @@ -248,7 +248,7 @@ func TestParser_ParseGeneralApiInfo(t *testing.T) { "tokenUrl": "https://example.com/oauth/token", "scopes": { "admin": "Grants read and write access to administrative information", - "read": " Grants read access", + "read": "Grants read access", "write": "Grants write access" } } @@ -337,7 +337,7 @@ func TestParser_ParseGeneralApiInfoTemplated(t *testing.T) { "tokenUrl": "https://example.com/oauth/token", "scopes": { "admin": "Grants read and write access to administrative information", - "read": " Grants read access", + "read": "Grants read access", "write": "Grants write access" } } @@ -1363,7 +1363,7 @@ func TestParseSimpleApi_ForSnakecase(t *testing.T) { "tokenUrl": "https://example.com/oauth/token", "scopes": { "admin": "Grants read and write access to administrative information", - "read": " Grants read access", + "read": "Grants read access", "write": "Grants write access" } } @@ -1819,7 +1819,7 @@ func TestParseSimpleApi_ForLowerCamelcase(t *testing.T) { "tokenUrl": "https://example.com/oauth/token", "scopes": { "admin": "Grants read and write access to administrative information", - "read": " Grants read access", + "read": "Grants read access", "write": "Grants write access" } } diff --git a/testdata/simple/expected.json b/testdata/simple/expected.json index 66646c996..b3f642629 100644 --- a/testdata/simple/expected.json +++ b/testdata/simple/expected.json @@ -808,7 +808,7 @@ "tokenUrl": "https://example.com/oauth/token", "scopes": { "admin": "Grants read and write access to administrative information", - "read": " Grants read access", + "read": "Grants read access", "write": "Grants write access" } }