Skip to content

Commit 8562afc

Browse files
altaywtfclaude
andauthored
test: replace maintainer identity in fixtures with synthetic values (#69)
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 <noreply@anthropic.com>
1 parent 530958c commit 8562afc

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

‎src/command-paths.test.ts‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -180,13 +180,13 @@ const mocks = vi.hoisted(() => {
180180
},
181181
family_owner: null,
182182
is_sub_account: false,
183-
mail: "altay@put.io",
183+
mail: "user@example.com",
184184
settings: {
185185
theme: "system",
186186
two_factor_enabled: true,
187187
},
188188
trash_size: 25,
189-
username: "altay",
189+
username: "example-user",
190190
}),
191191
);
192192
const listEventsMock = vi.fn(() =>
@@ -807,8 +807,8 @@ describe("cli command paths", () => {
807807
source: "env",
808808
},
809809
info: expect.objectContaining({
810-
mail: "altay@put.io",
811-
username: "altay",
810+
mail: "user@example.com",
811+
username: "example-user",
812812
}),
813813
}),
814814
"json",
@@ -824,7 +824,7 @@ describe("cli command paths", () => {
824824
expect(mocks.writeOutputMock).toHaveBeenCalledWith(
825825
{
826826
info: expect.objectContaining({
827-
username: "altay",
827+
username: "example-user",
828828
}),
829829
},
830830
"json",

‎src/internal/command.test.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,14 +237,14 @@ describe("selectTopLevelFields", () => {
237237
source: "env",
238238
},
239239
info: {
240-
username: "altay",
240+
username: "example-user",
241241
},
242242
},
243243
}),
244244
),
245245
).resolves.toEqual({
246246
info: {
247-
username: "altay",
247+
username: "example-user",
248248
},
249249
});
250250
});
@@ -259,7 +259,7 @@ describe("selectTopLevelFields", () => {
259259
source: "env",
260260
},
261261
info: {
262-
username: "altay",
262+
username: "example-user",
263263
},
264264
},
265265
}),

‎src/internal/terminal/format.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ describe("formatPercent", () => {
4343

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

4949
it("renders empty values as em dash", () => {

‎src/test-support/command-path-mocks.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ const defaultAccountInfo = () => ({
1010
},
1111
family_owner: null,
1212
is_sub_account: false,
13-
mail: "altay@put.io",
13+
mail: "user@example.com",
1414
settings: {
1515
theme: "system",
1616
two_factor_enabled: true,
1717
},
1818
trash_size: 25,
19-
username: "altay",
19+
username: "example-user",
2020
});
2121

2222
const defaultEventsResponse = () => ({

0 commit comments

Comments
 (0)