mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 10:17:39 +00:00
test(ui): use lightweight clears in theme and telegram media retry setup
This commit is contained in:
@@ -89,8 +89,8 @@ async function flushRetryTimers() {
|
|||||||
describe("resolveMedia getFile retry", () => {
|
describe("resolveMedia getFile retry", () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
vi.useFakeTimers();
|
vi.useFakeTimers();
|
||||||
fetchRemoteMedia.mockReset();
|
fetchRemoteMedia.mockClear();
|
||||||
saveMediaBuffer.mockReset();
|
saveMediaBuffer.mockClear();
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach(() => {
|
afterEach(() => {
|
||||||
|
|||||||
@@ -16,8 +16,8 @@ const stripAnsi = (str: string) =>
|
|||||||
describe("markdownTheme", () => {
|
describe("markdownTheme", () => {
|
||||||
describe("highlightCode", () => {
|
describe("highlightCode", () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cliHighlightMocks.highlight.mockReset();
|
cliHighlightMocks.highlight.mockClear();
|
||||||
cliHighlightMocks.supportsLanguage.mockReset();
|
cliHighlightMocks.supportsLanguage.mockClear();
|
||||||
cliHighlightMocks.highlight.mockImplementation((code: string) => code);
|
cliHighlightMocks.highlight.mockImplementation((code: string) => code);
|
||||||
cliHighlightMocks.supportsLanguage.mockReturnValue(true);
|
cliHighlightMocks.supportsLanguage.mockReturnValue(true);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user