mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-11-06 08:18:18 +00:00
feat: distinguish remote operation and request activity
This commit is contained in:
1 parent
9f9758bc12
commit
ba7ea27d0c
15 files changed
+579
-91
No files matched your search
@@ -1,13 +0,0 @@
|
||||
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);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user