From 0caa2fe782545caa3aa65473f80392883b56ae10 Mon Sep 17 00:00:00 2001 From: Oliver Eyton-Williams Date: Thu, 1 Oct 2020 09:53:01 +0200 Subject: [PATCH] fix: only test audited certificates --- curriculum/test/test-challenges.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/curriculum/test/test-challenges.js b/curriculum/test/test-challenges.js index 51a901bcd1..52d9d4fc98 100644 --- a/curriculum/test/test-challenges.js +++ b/curriculum/test/test-challenges.js @@ -2,6 +2,7 @@ const path = require('path'); const liveServer = require('live-server'); const stringSimilarity = require('string-similarity'); +const { isAuditedCert } = require('../../utils/is-audited'); const spinner = require('ora')(); @@ -314,7 +315,13 @@ function populateTestsForLang({ lang, challenges, meta }) { '5a24c314108439a4d4036148' ]; if (specialCases.includes(challenge.id)) return; - if (lang === 'english') return; + if ( + lang === 'english' || + !isAuditedCert(lang, challenge.superBlock) + ) { + return; + } + // If no .files, then no seed: if (!challenge.files) return;