Skip to content

Commit 81658e8

Browse files
committed
tests: adjust for a recent fix
In 67c366e (cascading-run: check the correct `app` attribute, 2025-11-25), I addressed a bug where real-life, non-mocked Check Run events would not have a top-level `app` attribute, but it would be hidden inside the `check_run` attribute. I forgot to update the mocked events in the tests to reflect that reality, and therefore the tests failed ever since (and I did not even notice because this repository has no dependencies that Dependabot would open PRs for, and the actual code is robust enough that there is no real need to open other PRs). Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent 1ff8966 commit 81658e8

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

__tests__/index.test.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,10 @@ test('a completed `tag-git` run triggers `git-artifacts` runs', async () => {
793793
title: 'Tag Git v2.40.0-rc1.windows.1 @c8edb521bdabec14b07e9142e48cab77a40ba339',
794794
summary: 'Tag Git v2.40.0-rc1.windows.1 @c8edb521bdabec14b07e9142e48cab77a40ba339',
795795
text: 'For details, see [this run](https://github.com/git-for-windows/git-for-windows-automation/actions/runs/4322343196).\nTagged Git v2.40.0-rc1.windows.1\nDone!.'
796-
}
796+
},
797+
app: {
798+
slug: 'gitforwindowshelper',
799+
},
797800
},
798801
installation: {
799802
id: 123
@@ -991,7 +994,10 @@ test('the third completed `git-artifacts-<arch>` check-run triggers an `upload-s
991994
title: 'Build Git v2.48.0-rc2.windows.1-472-g0c796d3013-20250128120446 artifacts',
992995
summary: 'Build Git v2.48.0-rc2.windows.1-472-g0c796d3013-20250128120446 artifacts from commit 0c796d3013a57e8cc894c152f0200107226e5dd1 (tag-git run #13009996573)',
993996
text: 'For details, see [this run](https://github.com/git-for-windows/git-for-windows-automation/actions/runs/13010016895).'
994-
}
997+
},
998+
app: {
999+
slug: 'gitforwindowshelper',
1000+
},
9951001
},
9961002
installation: {
9971003
id: 123

0 commit comments

Comments
 (0)