mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-05 03:05:40 -05:00
20 lines
478 B
JavaScript
20 lines
478 B
JavaScript
const { getAuditedSuperBlocks } = require('../config/superblocks');
|
|
|
|
function isAuditedCert(
|
|
language,
|
|
superblock,
|
|
{ showNewCurriculum, showUpcomingChanges }
|
|
) {
|
|
if (!language || !superblock)
|
|
throw Error('Both arguments must be provided for auditing');
|
|
|
|
const auditedSuperBlocks = getAuditedSuperBlocks({
|
|
showNewCurriculum,
|
|
showUpcomingChanges,
|
|
language
|
|
});
|
|
return auditedSuperBlocks.includes(superblock);
|
|
}
|
|
|
|
exports.isAuditedCert = isAuditedCert;
|