Skip to content

Commit

Permalink
oopsy: fix test errors on TODO abilities (#6001)
Browse files Browse the repository at this point in the history
  • Loading branch information
quisquous authored Dec 13, 2023
1 parent a44544d commit c076052
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/helper/test_oopsy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ const testOopsyFile = (file: string, info: OopsyTriggerSetInfo) => {
const abilityIdToId: { [abilityid: string]: string } = {};
for (const field of oopsyMistakeMapKeys) {
for (const [id, abilityId] of Object.entries(triggerSet[field] ?? {})) {
// Ignore TODOs from `util/sync_files.ts` that haven't been filled out.
if (abilityId.startsWith('TODO'))
continue;
const prevId = abilityIdToId[abilityId];
if (prevId === undefined) {
abilityIdToId[abilityId] = id;
Expand Down

0 comments on commit c076052

Please sign in to comment.