diff --git a/apps_test.go b/apps_test.go index bab20bf..f62bf15 100644 --- a/apps_test.go +++ b/apps_test.go @@ -26,7 +26,7 @@ func TestRegisterApp(t *testing.T) { fmt.Fprintln(w, `Apps`) return } - fmt.Fprintln(w, `{"client_id": "foo", "client_secret": "bar"}`) + fmt.Fprintln(w, `{"id": 123, "client_id": "foo", "client_secret": "bar"}`) return })) defer ts.Close() @@ -64,6 +64,9 @@ func TestRegisterApp(t *testing.T) { if err != nil { t.Fatalf("should not be fail: %v", err) } + if string(app.ID) != "123" { + t.Fatalf("want %q but %q", "bar", app.ClientSecret) + } if app.ClientID != "foo" { t.Fatalf("want %q but %q", "foo", app.ClientID) }