From d33c430ea7ed848a6718f526be3bbafb17f7dd2f Mon Sep 17 00:00:00 2001 From: Altay Date: Wed, 19 Aug 2026 21:25:51 +0300 Subject: [PATCH] test: replace maintainer identity in fixtures with synthetic values Public repo shipped altay@put.io and username "altay" in test fixtures. Replace with user@example.com / example-user; assertions unchanged in shape. Fixes #65 Co-Authored-By: Claude Fable 5 --- src/command-paths.test.ts | 10 +++++----- src/internal/command.test.ts | 6 +++--- src/internal/terminal/format.test.ts | 2 +- src/test-support/command-path-mocks.ts | 4 ++-- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/command-paths.test.ts b/src/command-paths.test.ts index 8af14f9..9198cf9 100644 --- a/src/command-paths.test.ts +++ b/src/command-paths.test.ts @@ -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(() => @@ -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", @@ -824,7 +824,7 @@ describe("cli command paths", () => { expect(mocks.writeOutputMock).toHaveBeenCalledWith( { info: expect.objectContaining({ - username: "altay", + username: "example-user", }), }, "json", diff --git a/src/internal/command.test.ts b/src/internal/command.test.ts index ab3ffa3..771975e 100644 --- a/src/internal/command.test.ts +++ b/src/internal/command.test.ts @@ -237,14 +237,14 @@ describe("selectTopLevelFields", () => { source: "env", }, info: { - username: "altay", + username: "example-user", }, }, }), ), ).resolves.toEqual({ info: { - username: "altay", + username: "example-user", }, }); }); @@ -259,7 +259,7 @@ describe("selectTopLevelFields", () => { source: "env", }, info: { - username: "altay", + username: "example-user", }, }, }), diff --git a/src/internal/terminal/format.test.ts b/src/internal/terminal/format.test.ts index bcf0975..7d7a49a 100644 --- a/src/internal/terminal/format.test.ts +++ b/src/internal/terminal/format.test.ts @@ -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", () => { diff --git a/src/test-support/command-path-mocks.ts b/src/test-support/command-path-mocks.ts index 01603a0..40fad07 100644 --- a/src/test-support/command-path-mocks.ts +++ b/src/test-support/command-path-mocks.ts @@ -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 = () => ({