mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-11 20:23:43 +00:00
test(daemon): use lightweight clears in systemd mocks
This commit is contained in:
@@ -18,7 +18,7 @@ import {
|
|||||||
|
|
||||||
describe("systemd availability", () => {
|
describe("systemd availability", () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
execFileMock.mockReset();
|
execFileMock.mockClear();
|
||||||
});
|
});
|
||||||
|
|
||||||
it("returns true when systemctl --user succeeds", async () => {
|
it("returns true when systemctl --user succeeds", async () => {
|
||||||
@@ -151,7 +151,7 @@ describe("parseSystemdExecStart", () => {
|
|||||||
|
|
||||||
describe("systemd service control", () => {
|
describe("systemd service control", () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
execFileMock.mockReset();
|
execFileMock.mockClear();
|
||||||
});
|
});
|
||||||
|
|
||||||
it("stops the resolved user unit", async () => {
|
it("stops the resolved user unit", async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user