fix: rename superblock to use /2022/ (#44535)

* chore: update superblock properties

* refactor: remove isAudited from certs

It was always defaulting to English, anyway.

* refactor: get superblock from metas, not dirs

* fix: rename responsive-web-design-22

This converts the slugs to /2022/responsive-web-design

* refactor: remove unused export

* test: update test with new curriculum config

* refactor: use key not [key]

* refactor: remove directory reference from test
This commit is contained in:
Oliver Eyton-Williams
2021-12-21 18:35:51 +00:00
committed by GitHub
parent 198150217a
commit ff566d441a
28 changed files with 74 additions and 85 deletions

View File

@ -63,10 +63,12 @@ describe('project submission', () => {
{ browser: 'electron' },
() => {
cy.fixture('../../config/curriculum.json').then(curriculum => {
const { challenges, meta } =
curriculum[SuperBlocks.JsAlgoDataStruct].blocks[
'javascript-algorithms-and-data-structures-projects'
];
const targetBlock =
'javascript-algorithms-and-data-structures-projects';
const javaScriptSuperBlock = Object.values(curriculum).filter(
({ blocks }) => blocks[targetBlock]
)[0];
const { challenges, meta } = javaScriptSuperBlock.blocks[targetBlock];
const projectTitles = meta.challengeOrder.map(([, title]) => title);
const projectsInOrder = projectTitles.map(projectTitle => {