feat: expand advanced widget experiences
This commit is contained in:
1 parent
9437d211c8
commit
c099a8eef6
119 files changed
+3624
-844
No files matched your search
@@ -0,0 +1,12 @@
|
||||
import { describe, expect, test } from "vitest";
|
||||
|
||||
import { getIndexerDisplayStatus } from "./status";
|
||||
|
||||
describe("Indexer display status", () => {
|
||||
test("distinguishes disabled indexers from unhealthy enabled indexers", () => {
|
||||
expect(getIndexerDisplayStatus({ enabled: false, status: false })).toBe("disabled");
|
||||
expect(getIndexerDisplayStatus({ enabled: false, status: true })).toBe("disabled");
|
||||
expect(getIndexerDisplayStatus({ enabled: true, status: false })).toBe("unhealthy");
|
||||
expect(getIndexerDisplayStatus({ enabled: true, status: true })).toBe("healthy");
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user