mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-15 20:40:42 +00:00
test: tighten settings poller assertions
This commit is contained in:
@@ -256,8 +256,8 @@ describe("setTabFromRoute", () => {
|
||||
const host = createHost("chat");
|
||||
|
||||
setTabFromRoute(host, "logs");
|
||||
expect(host.logsPollInterval).not.toBeNull();
|
||||
expect(host.debugPollInterval).toBeNull();
|
||||
expect(host.logsPollInterval).not.toBe(host.debugPollInterval);
|
||||
|
||||
setTabFromRoute(host, "chat");
|
||||
expect(host.logsPollInterval).toBeNull();
|
||||
@@ -267,8 +267,8 @@ describe("setTabFromRoute", () => {
|
||||
const host = createHost("chat");
|
||||
|
||||
setTabFromRoute(host, "debug");
|
||||
expect(host.debugPollInterval).not.toBeNull();
|
||||
expect(host.logsPollInterval).toBeNull();
|
||||
expect(host.debugPollInterval).not.toBe(host.logsPollInterval);
|
||||
|
||||
setTabFromRoute(host, "chat");
|
||||
expect(host.debugPollInterval).toBeNull();
|
||||
|
||||
Reference in New Issue
Block a user