mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 08:37:41 +00:00
test: drop redundant empty-profile extraction cases
This commit is contained in:
@@ -102,10 +102,6 @@ describe("getUsedPorts", () => {
|
|||||||
expect(getUsedPorts(undefined)).toEqual(new Set());
|
expect(getUsedPorts(undefined)).toEqual(new Set());
|
||||||
});
|
});
|
||||||
|
|
||||||
it("returns empty set for empty profiles object", () => {
|
|
||||||
expect(getUsedPorts({})).toEqual(new Set());
|
|
||||||
});
|
|
||||||
|
|
||||||
it("extracts ports from profile configs", () => {
|
it("extracts ports from profile configs", () => {
|
||||||
const profiles = {
|
const profiles = {
|
||||||
openclaw: { cdpPort: 18792 },
|
openclaw: { cdpPort: 18792 },
|
||||||
@@ -227,10 +223,6 @@ describe("getUsedColors", () => {
|
|||||||
expect(getUsedColors(undefined)).toEqual(new Set());
|
expect(getUsedColors(undefined)).toEqual(new Set());
|
||||||
});
|
});
|
||||||
|
|
||||||
it("returns empty set for empty profiles object", () => {
|
|
||||||
expect(getUsedColors({})).toEqual(new Set());
|
|
||||||
});
|
|
||||||
|
|
||||||
it("extracts and uppercases colors from profile configs", () => {
|
it("extracts and uppercases colors from profile configs", () => {
|
||||||
const profiles = {
|
const profiles = {
|
||||||
openclaw: { color: "#ff4500" },
|
openclaw: { color: "#ff4500" },
|
||||||
|
|||||||
Reference in New Issue
Block a user