Personal Telegram developer console for GitHub

test(navigation): mock actionable workflow report

davoodmehraban89 committed Oct 4, 2026 at 18:01 UTC ad98df60b273d6659900304e1fdcfc14fa7dcf56
1 file changed +6 -2
test/navigation.test.js
+6 -2
@@ -63,8 +63,12 @@ function installApiMock() {
63 html_url: 'https://github.com/davoodmehraban89/demo/pull/7', user: { login: 'davoodmehraban89' }
64 }]);
65 if (value === 'https://api.github.com/repos/davoodmehraban89/demo/actions/runs?per_page=3') return json({ workflow_runs: [{
66 - name: 'CI', status: 'completed', conclusion: 'success', head_commit: { message: 'fix mobile menu' },
67 - html_url: 'https://github.com/davoodmehraban89/demo/actions/runs/1'
66 + id: 1, name: 'CI', status: 'completed', conclusion: 'success', head_branch: 'main', head_sha: '1234567890abcdef1234567890abcdef12345678', run_number: 1,
67 + head_commit: { message: 'fix mobile menu' }, html_url: 'https://github.com/davoodmehraban89/demo/actions/runs/1'
68 + }] });
69 + if (value === 'https://api.github.com/repos/davoodmehraban89/demo/actions/runs?per_page=10') return json({ workflow_runs: [{
70 + id: 1, name: 'CI', status: 'completed', conclusion: 'success', head_branch: 'main', head_sha: '1234567890abcdef1234567890abcdef12345678', run_number: 1,
71 + event: 'push', head_commit: { message: 'fix mobile menu' }, html_url: 'https://github.com/davoodmehraban89/demo/actions/runs/1'
72 }] });
73 return json({ message: 'Not Found' }, 404);
74 };