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