GeezerVison is showing github.com — test(forgejo): expect failed checks first · pingdotgg/t3code@79724d5
File treeExpand file treeCollapse file tree Open diff view settings packages/source-control-forgejo/src/server
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: packages/source-control-forgejo/src/server/ForgejoSourceControlProvider.test.ts +12-6Lines changed: 12 additions & 6 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -240,11 +240,17 @@ it.effect.each([ | 240 | 240 | for (const checks of [summary.checks, detail.checks]) { | 241 | 241 | assert.deepStrictEqual( | 242 | 242 | checks.map((check) => [check.name, check.status, check.required]), | 243 | | - [ | 244 | | - ["ci/required-build", "success", supported ? true : undefined], | 245 | | - ["ci/optional-lint", supported ? "failure" : "success", undefined], | 246 | | - [missing, "pending", supported ? true : undefined], | 247 | | - ], | | 243 | + supported | | 244 | + ? [ | | 245 | + ["ci/optional-lint", "failure", undefined], | | 246 | + ["ci/required-build", "success", true], | | 247 | + [missing, "pending", true], | | 248 | + ] | | 249 | + : [ | | 250 | + ["ci/required-build", "success", undefined], | | 251 | + ["ci/optional-lint", "success", undefined], | | 252 | + [missing, "pending", undefined], | | 253 | + ], | 248 | 254 | ); | 249 | 255 | if (!supported) { | 250 | 256 | assert.strictEqual( | @@ -298,8 +304,8 @@ it.effect.each([ | 298 | 304 | assert.deepStrictEqual( | 299 | 305 | checks.map((check) => [check.name, check.status, check.required]), | 300 | 306 | [ | 301 | | - ["ci/required-build", "success", undefined], | 302 | 307 | ["ci/optional-lint", "failure", undefined], | | 308 | + ["ci/required-build", "success", undefined], | 303 | 309 | ], | 304 | 310 | ); | 305 | 311 | } | |
|