mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
feat: remove getUserInput (#59442)
This commit is contained in:
committed by
GitHub
parent
5b7b0d14ef
commit
d6628979e9
@@ -25,10 +25,6 @@ async function initTestFrame(e: InitTestFrameArg = { code: {} }) {
|
||||
return out;
|
||||
};
|
||||
|
||||
if (!e.getUserInput) {
|
||||
e.getUserInput = () => code;
|
||||
}
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
// Fake Deep Equal dependency
|
||||
const DeepEqual = (a: Record<string, unknown>, b: Record<string, unknown>) =>
|
||||
@@ -94,7 +90,7 @@ async function initTestFrame(e: InitTestFrameArg = { code: {} }) {
|
||||
const test = await testPromise;
|
||||
if (typeof test === 'function') {
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
|
||||
await test(e.getUserInput);
|
||||
await test();
|
||||
}
|
||||
return { pass: true };
|
||||
} catch (err) {
|
||||
|
||||
@@ -19,7 +19,6 @@ export interface InitTestFrameArg {
|
||||
contents?: string;
|
||||
editableContents?: string;
|
||||
};
|
||||
getUserInput?: (fileName: string) => string;
|
||||
loadEnzyme?: () => void;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user