From 05d803630bf397e3eed4112d92b6b125c8a4dcfa Mon Sep 17 00:00:00 2001 From: Oliver Eyton-Williams Date: Wed, 9 Oct 2024 11:08:23 +0200 Subject: [PATCH] fix(curriculum): include header in tests (#56598) --- client/src/templates/Challenges/utils/frame.ts | 4 ++-- .../build-a-personal-portfolio-webpage.md | 9 +++++++++ curriculum/test/test-challenges.js | 6 +++++- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/client/src/templates/Challenges/utils/frame.ts b/client/src/templates/Challenges/utils/frame.ts index 9628bca95ed..6955fb7e2b4 100644 --- a/client/src/templates/Challenges/utils/frame.ts +++ b/client/src/templates/Challenges/utils/frame.ts @@ -70,7 +70,7 @@ export const scrollManager = new ScrollManager(); // main iframe is responsible rendering the preview and is where we proxy the export const mainPreviewId = 'fcc-main-frame'; // the test frame is responsible for running the assert tests -const testId = 'fcc-test-frame'; +export const testId = 'fcc-test-frame'; // the project preview frame demos the finished project export const projectPreviewId = 'fcc-project-preview-frame'; @@ -86,7 +86,7 @@ const DOCUMENT_NOT_FOUND_ERROR = 'misc.document-notfound'; // of the frame. React dom errors already appear in the console, so onerror // does not need to pass them on to the default error handler. -const createHeader = (id = mainPreviewId) => ` +export const createHeader = (id = mainPreviewId) => `