atproto/packages/bsky/tests/views/__snapshots__/labeler-service.test.ts.snap
Samuel Newman 8a0f190399
Subscribe to activity implementation (#3908)
Co-authored-by: rafael <rafael@blueskyweb.xyz>
2025-06-30 18:43:27 -03:00

234 lines
6.2 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`labeler service views fetches labelers 1`] = `
Object {
"views": Array [
Object {
"$type": "app.bsky.labeler.defs#labelerView",
"cid": "cids(0)",
"creator": Object {
"associated": Object {
"activitySubscription": Object {
"allowSubscriptions": "followers",
},
"labeler": true,
},
"avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(1)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "its me!",
"did": "user(0)",
"displayName": "ali",
"handle": "alice.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [
Object {
"cid": "cids(2)",
"cts": "1970-01-01T00:00:00.000Z",
"src": "user(0)",
"uri": "record(3)",
"val": "self-label-a",
},
Object {
"cid": "cids(2)",
"cts": "1970-01-01T00:00:00.000Z",
"src": "user(0)",
"uri": "record(3)",
"val": "self-label-b",
},
],
"viewer": Object {
"blockedBy": false,
"followedBy": "record(2)",
"following": "record(1)",
"muted": false,
},
},
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"likeCount": 1,
"uri": "record(0)",
"viewer": Object {
"like": "record(4)",
},
},
Object {
"$type": "app.bsky.labeler.defs#labelerView",
"cid": "cids(3)",
"creator": Object {
"associated": Object {
"activitySubscription": Object {
"allowSubscriptions": "followers",
},
"labeler": true,
},
"avatar": "https://bsky.public.url/img/avatar/plain/user(3)/cids(1)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "hi im bob label_me",
"did": "user(2)",
"displayName": "bobby",
"handle": "bob.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"muted": false,
},
},
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"likeCount": 0,
"uri": "record(5)",
"viewer": Object {},
},
],
}
`;
exports[`labeler service views fetches labelers detailed 1`] = `
Object {
"views": Array [
Object {
"$type": "app.bsky.labeler.defs#labelerViewDetailed",
"cid": "cids(0)",
"creator": Object {
"associated": Object {
"activitySubscription": Object {
"allowSubscriptions": "followers",
},
"labeler": true,
},
"avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(1)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "its me!",
"did": "user(0)",
"displayName": "ali",
"handle": "alice.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [
Object {
"cid": "cids(2)",
"cts": "1970-01-01T00:00:00.000Z",
"src": "user(0)",
"uri": "record(3)",
"val": "self-label-a",
},
Object {
"cid": "cids(2)",
"cts": "1970-01-01T00:00:00.000Z",
"src": "user(0)",
"uri": "record(3)",
"val": "self-label-b",
},
],
"viewer": Object {
"blockedBy": false,
"followedBy": "record(2)",
"following": "record(1)",
"muted": false,
},
},
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"likeCount": 1,
"policies": Object {
"labelValues": Array [
"spam",
"!hide",
"scam",
"impersonation",
],
},
"uri": "record(0)",
"viewer": Object {
"like": "record(4)",
},
},
Object {
"$type": "app.bsky.labeler.defs#labelerViewDetailed",
"cid": "cids(3)",
"creator": Object {
"associated": Object {
"activitySubscription": Object {
"allowSubscriptions": "followers",
},
"labeler": true,
},
"avatar": "https://bsky.public.url/img/avatar/plain/user(3)/cids(1)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "hi im bob label_me",
"did": "user(2)",
"displayName": "bobby",
"handle": "bob.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"muted": false,
},
},
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"likeCount": 0,
"policies": Object {
"labelValues": Array [
"nudity",
"sexual",
"porn",
],
},
"uri": "record(5)",
"viewer": Object {},
},
],
}
`;
exports[`labeler service views returns additional labeler data 1`] = `
Object {
"views": Array [
Object {
"$type": "app.bsky.labeler.defs#labelerViewDetailed",
"cid": "cids(0)",
"creator": Object {
"associated": Object {
"activitySubscription": Object {
"allowSubscriptions": "followers",
},
"labeler": true,
},
"did": "user(0)",
"handle": "carol.test",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"following": "record(1)",
"muted": false,
},
},
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"likeCount": 0,
"policies": Object {
"labelValues": Array [
"spam",
"!hide",
"scam",
"impersonation",
],
},
"reasonTypes": Array [
"com.atproto.moderation.defs#reasonOther",
],
"subjectCollections": Array [
"app.bsky.feed.post",
],
"subjectTypes": Array [
"record",
],
"uri": "record(0)",
"viewer": Object {},
},
],
}
`;