Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/command-paths.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,13 @@ const mocks = vi.hoisted(() => {
},
family_owner: null,
is_sub_account: false,
mail: "altay@put.io",
mail: "user@example.com",
settings: {
theme: "system",
two_factor_enabled: true,
},
trash_size: 25,
username: "altay",
username: "example-user",
}),
);
const listEventsMock = vi.fn(() =>
Expand Down Expand Up @@ -807,8 +807,8 @@ describe("cli command paths", () => {
source: "env",
},
info: expect.objectContaining({
mail: "altay@put.io",
username: "altay",
mail: "user@example.com",
username: "example-user",
}),
}),
"json",
Expand All @@ -824,7 +824,7 @@ describe("cli command paths", () => {
expect(mocks.writeOutputMock).toHaveBeenCalledWith(
{
info: expect.objectContaining({
username: "altay",
username: "example-user",
}),
},
"json",
Expand Down
6 changes: 3 additions & 3 deletions src/internal/command.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,14 +237,14 @@ describe("selectTopLevelFields", () => {
source: "env",
},
info: {
username: "altay",
username: "example-user",
},
},
}),
),
).resolves.toEqual({
info: {
username: "altay",
username: "example-user",
},
});
});
Expand All @@ -259,7 +259,7 @@ describe("selectTopLevelFields", () => {
source: "env",
},
info: {
username: "altay",
username: "example-user",
},
},
}),
Expand Down
2 changes: 1 addition & 1 deletion src/internal/terminal/format.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ describe("formatPercent", () => {

describe("formatNullable", () => {
it("returns non-empty strings as-is", () => {
expect(formatNullable("altay")).toBe("altay");
expect(formatNullable("example-user")).toBe("example-user");
});

it("renders empty values as em dash", () => {
Expand Down
4 changes: 2 additions & 2 deletions src/test-support/command-path-mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ const defaultAccountInfo = () => ({
},
family_owner: null,
is_sub_account: false,
mail: "altay@put.io",
mail: "user@example.com",
settings: {
theme: "system",
two_factor_enabled: true,
},
trash_size: 25,
username: "altay",
username: "example-user",
});

const defaultEventsResponse = () => ({
Expand Down