totalresult in response stub

This commit is contained in:
peintnermax
2024-04-04 09:32:29 +02:00
parent e7309d82c6
commit 4bbc9ea8a7

View File

@@ -55,26 +55,29 @@ describe("login", () => {
stub("zitadel.user.v2beta.UserService", "ListUsers", { stub("zitadel.user.v2beta.UserService", "ListUsers", {
data: { data: {
details: {
totalResult: 1,
},
result: [ result: [
{ {
userId: "1231231231", userId: "221394658884845598",
state: 1, state: 1,
username: "max", username: "john@zitadel.com",
loginNames: ["max"], loginNames: ["john@zitadel.com"],
preferredLoginName: "max", preferredLoginName: "john@zitadel.com",
human: { human: {
userId: "123123123", userId: "221394658884845598",
state: 1, state: 1,
username: "max", username: "john@zitadel.com",
loginNames: ["max"], loginNames: ["john@zitadel.com"],
preferredLoginName: "max", preferredLoginName: "john@zitadel.com",
profile: { profile: {
givenName: "Max", givenName: "John",
familyName: "Mustermann", familyName: "Doe",
avatarUrl: "https://zitadel.com/avatar.jpg", avatarUrl: "https://zitadel.com/avatar.jpg",
}, },
email: { email: {
email: "string", email: "john@zitadel.com",
isVerified: true, isVerified: true,
}, },
}, },