Skip to content

Commit a531d3c

Browse files
committed
fix: Fix /v1/instance/translation_languages assertion
1 parent f5d83e1 commit a531d3c

4 files changed

Lines changed: 9 additions & 2 deletions

File tree

src/mastodon/entities/v1/list.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ export interface List {
2020
*/
2121
repliesPolicy: ListRepliesPolicy;
2222
/** https://github.com/mastodon/mastodon/pull/22048/files */
23-
isExclusive: boolean;
23+
exclusive: boolean;
2424
}

src/mastodon/rest/v1/list-repository.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import { type DefaultPaginationParams } from "../../repository";
66
export interface CreateListParams {
77
/** The title of the list to be created. */
88
readonly title: string;
9+
/** https://github.com/mastodon/mastodon/pull/22048/files */
10+
readonly exclusive?: boolean;
911
}
1012

1113
export type UpdateListParams = CreateListParams;

tests/rest/v1/admin/trends.spec.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ describe("trends", () => {
44
expect(links).toEqual(expect.any(Array));
55
});
66

7+
it("fetches link publishers", async () => {
8+
const links = await admin.v1.admin.trends.links.publishers.list();
9+
expect(links).toEqual(expect.any(Array));
10+
});
11+
712
it("fetches statuses", async () => {
813
const statuses = await admin.v1.admin.trends.statuses.list();
914
expect(statuses).toEqual(expect.any(Array));

tests/rest/v1/instance.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ it("lists languages", () => {
2222
it("lists translatable languages", () => {
2323
return sessions.use(async (client) => {
2424
const languages = await client.rest.v1.instance.translationLanguages.list();
25-
expect(languages).toMatchInlineSnapshot(`{}`);
25+
expect(languages).toEqual(expect.any(Object));
2626
});
2727
});

0 commit comments

Comments
 (0)