Skip to content

Commit 9adcf3c

Browse files
committed
chore: test case
1 parent 04cd664 commit 9adcf3c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/main/shared/setOfMarks.test.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
* Copyright (c) 2025 Bytedance, Inc. and its affiliates.
33
* SPDX-License-Identifier: Apache-2.0
44
*/
5+
import { test, expect } from 'vitest';
56
import { setOfMarksOverlays } from './setOfMarks';
67
// import { sleep } from '@ui-tars/shared/utils';
78

8-
const testMakeScreenMarker = async () => {
9+
const testMakeScreenMarker = () => {
910
let xPos;
1011
let yPos;
1112
const actions = [
@@ -124,4 +125,6 @@ const testMakeScreenMarker = async () => {
124125
}
125126
};
126127

127-
testMakeScreenMarker();
128+
test('not throw error', () => {
129+
expect(() => testMakeScreenMarker()).not.toThrow();
130+
});

0 commit comments

Comments
 (0)