Skip to content

Commit 6d47d5e

Browse files
committed
fmt
1 parent 3f81094 commit 6d47d5e

File tree

1 file changed

+14
-18
lines changed

1 file changed

+14
-18
lines changed

__tests__/main-execution.test.js

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,27 +15,23 @@ afterEach(() => {
1515
test('covers main.js execution when LOCAL_ACTIONS_CI_TEST is not true (integration test)', async () => {
1616
// Mock the validators to avoid actual execution
1717
jest.doMock('../src/functions/json-validator', () => ({
18-
jsonValidator: jest
19-
.fn()
20-
.mockResolvedValue({
21-
success: true,
22-
failed: 0,
23-
passed: 1,
24-
skipped: 0,
25-
violations: []
26-
})
18+
jsonValidator: jest.fn().mockResolvedValue({
19+
success: true,
20+
failed: 0,
21+
passed: 1,
22+
skipped: 0,
23+
violations: []
24+
})
2725
}))
2826

2927
jest.doMock('../src/functions/yaml-validator', () => ({
30-
yamlValidator: jest
31-
.fn()
32-
.mockResolvedValue({
33-
success: true,
34-
failed: 0,
35-
passed: 1,
36-
skipped: 0,
37-
violations: []
38-
})
28+
yamlValidator: jest.fn().mockResolvedValue({
29+
success: true,
30+
failed: 0,
31+
passed: 1,
32+
skipped: 0,
33+
violations: []
34+
})
3935
}))
4036

4137
jest.doMock('../src/functions/process-results', () => ({

0 commit comments

Comments
 (0)