Protect bounded remote activity across app lifecycle

This commit is contained in:
vorotamoroz committed 2026-07-15 20:53:27 +09:00
1 parent 4cbccf85b4
commit 31e9186930
373 files changed
+1275 -466

No files matched your search

@@ -0,0 +1,13 @@
import { describe, expect, it } from "vitest";
import { hasRemoteActivity } from "./RemoteActivityStatus.ts";
describe("hasRemoteActivity", () => {
it("preserves the existing HTTP request balance signal", () => {
expect(hasRemoteActivity(2, 1, 0)).toBe(true);
expect(hasRemoteActivity(2, 2, 0)).toBe(false);
});
it("reports bounded remote activity without an HTTP request imbalance", () => {
expect(hasRemoteActivity(2, 2, 1)).toBe(true);
});
});