mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 22:04:30 +00:00
test(commands): trim dashboard setup resets and dedupe bind cases
This commit is contained in:
@@ -58,13 +58,13 @@ function mockSnapshot(token = "abc") {
|
||||
describe("dashboardCommand", () => {
|
||||
beforeEach(() => {
|
||||
resetRuntime();
|
||||
readConfigFileSnapshotMock.mockReset();
|
||||
resolveGatewayPortMock.mockReset();
|
||||
resolveControlUiLinksMock.mockReset();
|
||||
detectBrowserOpenSupportMock.mockReset();
|
||||
openUrlMock.mockReset();
|
||||
formatControlUiSshHintMock.mockReset();
|
||||
copyToClipboardMock.mockReset();
|
||||
readConfigFileSnapshotMock.mockClear();
|
||||
resolveGatewayPortMock.mockClear();
|
||||
resolveControlUiLinksMock.mockClear();
|
||||
detectBrowserOpenSupportMock.mockClear();
|
||||
openUrlMock.mockClear();
|
||||
formatControlUiSshHintMock.mockClear();
|
||||
copyToClipboardMock.mockClear();
|
||||
});
|
||||
|
||||
it("opens and copies the dashboard link by default", async () => {
|
||||
|
||||
Reference in New Issue
Block a user