atproto/packages/ozone/tests/__snapshots__/moderation-statuses.test.ts.snap
Foysal Ahamed c559e7e3de
Add subject tags with report type (#3260)
*  Add subject tags with report type

*  Update snapshots

*  Update snpshot for pds admin

*  Update ozone snapshot

*  Update ozone snapshot

* 🧹 Cleanup
2024-12-18 22:57:27 +00:00

151 lines
4.0 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`moderation-statuses query statuses returns statuses filtered by subject language 1`] = `
Array [
Object {
"createdAt": "1970-01-01T00:00:00.000Z",
"hosting": Object {
"$type": "tools.ozone.moderation.defs#recordHosting",
"status": "unknown",
},
"id": 7,
"lastReportedAt": "1970-01-01T00:00:00.000Z",
"reviewState": "tools.ozone.moderation.defs#reviewOpen",
"subject": Object {
"$type": "com.atproto.repo.strongRef",
"cid": "cids(0)",
"uri": "record(0)",
},
"subjectBlobCids": Array [],
"subjectRepoHandle": "bob.test",
"tags": Array [
"report:spam",
"lang:en",
"lang:i",
],
"takendown": false,
"updatedAt": "1970-01-01T00:00:00.000Z",
},
Object {
"createdAt": "1970-01-01T00:00:00.000Z",
"hosting": Object {
"$type": "tools.ozone.moderation.defs#accountHosting",
"status": "unknown",
},
"id": 5,
"lastReportedAt": "1970-01-01T00:00:00.000Z",
"reviewState": "tools.ozone.moderation.defs#reviewOpen",
"subject": Object {
"$type": "com.atproto.admin.defs#repoRef",
"did": "user(0)",
},
"subjectBlobCids": Array [],
"subjectRepoHandle": "bob.test",
"tags": Array [
"report:spam",
"lang:en",
"lang:i",
],
"takendown": false,
"updatedAt": "1970-01-01T00:00:00.000Z",
},
]
`;
exports[`moderation-statuses query statuses returns statuses for subjects that received moderation events 1`] = `
Array [
Object {
"createdAt": "1970-01-01T00:00:00.000Z",
"hosting": Object {
"$type": "tools.ozone.moderation.defs#recordHosting",
"status": "unknown",
},
"id": 7,
"lastReportedAt": "1970-01-01T00:00:00.000Z",
"reviewState": "tools.ozone.moderation.defs#reviewOpen",
"subject": Object {
"$type": "com.atproto.repo.strongRef",
"cid": "cids(0)",
"uri": "record(0)",
},
"subjectBlobCids": Array [],
"subjectRepoHandle": "bob.test",
"tags": Array [
"report:spam",
"lang:en",
"lang:i",
],
"takendown": false,
"updatedAt": "1970-01-01T00:00:00.000Z",
},
Object {
"createdAt": "1970-01-01T00:00:00.000Z",
"hosting": Object {
"$type": "tools.ozone.moderation.defs#accountHosting",
"status": "unknown",
},
"id": 5,
"lastReportedAt": "1970-01-01T00:00:00.000Z",
"reviewState": "tools.ozone.moderation.defs#reviewOpen",
"subject": Object {
"$type": "com.atproto.admin.defs#repoRef",
"did": "user(0)",
},
"subjectBlobCids": Array [],
"subjectRepoHandle": "bob.test",
"tags": Array [
"report:spam",
"lang:en",
"lang:i",
],
"takendown": false,
"updatedAt": "1970-01-01T00:00:00.000Z",
},
Object {
"createdAt": "1970-01-01T00:00:00.000Z",
"hosting": Object {
"$type": "tools.ozone.moderation.defs#recordHosting",
"status": "unknown",
},
"id": 3,
"lastReportedAt": "1970-01-01T00:00:00.000Z",
"reviewState": "tools.ozone.moderation.defs#reviewOpen",
"subject": Object {
"$type": "com.atproto.repo.strongRef",
"cid": "cids(1)",
"uri": "record(1)",
},
"subjectBlobCids": Array [],
"subjectRepoHandle": "alice.test",
"tags": Array [
"report:spam",
"lang:ha",
],
"takendown": false,
"updatedAt": "1970-01-01T00:00:00.000Z",
},
Object {
"createdAt": "1970-01-01T00:00:00.000Z",
"hosting": Object {
"$type": "tools.ozone.moderation.defs#accountHosting",
"status": "unknown",
},
"id": 1,
"lastReportedAt": "1970-01-01T00:00:00.000Z",
"reviewState": "tools.ozone.moderation.defs#reviewOpen",
"subject": Object {
"$type": "com.atproto.admin.defs#repoRef",
"did": "user(1)",
},
"subjectBlobCids": Array [],
"subjectRepoHandle": "alice.test",
"tags": Array [
"report:misleading",
"lang:und",
],
"takendown": false,
"updatedAt": "1970-01-01T00:00:00.000Z",
},
]
`;