diff --git a/test/check-group-meetings.mjs b/test/check-group-meetings.mjs index f6e0789..13930bf 100644 --- a/test/check-group-meetings.mjs +++ b/test/check-group-meetings.mjs @@ -115,16 +115,11 @@ describe('The group meetings module', function () { }]); }); - it('reports missing minutes when a meeting is past', async function () { + it('does not report missing minutes when a meeting is past', async function () { const project = await fetchTestProject(); const sessionNumber = 11; const errors = await validateSession(sessionNumber, project); - assert.deepStrictEqual(errors, [{ - session: sessionNumber, - severity: 'warning', - type: 'minutes', - messages: ['Session needs a link to the minutes'] - }]); + assert.deepStrictEqual(errors, []); }); it('reports an error when two sessions are scheduled in the same room at the same time', async function () { diff --git a/test/data/ref-group-meetings.html b/test/data/ref-group-meetings.html index 8310385..c2a7a76 100644 --- a/test/data/ref-group-meetings.html +++ b/test/data/ref-group-meetings.html @@ -83,14 +83,14 @@

Sessions overview

Validation warnings 1 + 3 4 - 5 Feel good sessions 5 - 2 - 7 + 3 + 8 diff --git a/test/data/ref-tpac2023.html b/test/data/ref-tpac2023.html index 3f83ecc..a105df1 100644 --- a/test/data/ref-tpac2023.html +++ b/test/data/ref-tpac2023.html @@ -83,14 +83,14 @@

Sessions overview

Validation warnings 0 - 59 - 59 + 2 + 2 Feel good sessions 0 - 0 - 0 + 57 + 57 diff --git a/tools/lib/validate.mjs b/tools/lib/validate.mjs index 93c4f3a..0f01c45 100644 --- a/tools/lib/validate.mjs +++ b/tools/lib/validate.mjs @@ -517,7 +517,9 @@ ${projectErrors.map(error => '- ' + error).join('\n')}`); // If breakout session took place more than 2 days ago, // time to add a link to the minutes - if (hasActualMeeting(meetings) && isMaterialMissing('minutes')) { + if (project.metadata.type !== 'groups' && + hasActualMeeting(meetings) && + isMaterialMissing('minutes')) { const minutesNeeded = meetings .filter(meeting => meeting.room && meeting.day && meeting.slot) .find(meeting => {