test(sites): use scoped account traffic in capability results
This commit is contained in:
1 parent
487046ae8d
commit
235bfcc654
1 file changed
+2
-2
@@ -120,7 +120,7 @@ describe.skipIf(!up)("站点能力(mock NexusPHP)", () => {
|
||||
userData: { upload: number } | null;
|
||||
};
|
||||
expect(out).toMatchObject({ ok: true, status: "active", reason: null });
|
||||
expect(out.userData?.upload).toBe(12.5 * TiB);
|
||||
expect(out.userData?.upload).toBe(2 * TiB);
|
||||
await assertRedacted(out);
|
||||
const audits = await h.db
|
||||
.selectFrom("audit_event")
|
||||
@@ -155,7 +155,7 @@ describe.skipIf(!up)("站点能力(mock NexusPHP)", () => {
|
||||
expect(out.accounts).toHaveLength(1);
|
||||
expect(out.accounts[0]?.userData?.seeding).toBe(31);
|
||||
expect(out.history).toHaveLength(1);
|
||||
expect(out.history[0]?.upload).toBe(12.5 * TiB);
|
||||
expect(out.history[0]?.upload).toBe(2 * TiB);
|
||||
await assertRedacted(out);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user