Skip to content

Commit

Permalink
👀 Commented out test case code in Editor.tsx (for production)
Browse files Browse the repository at this point in the history
  • Loading branch information
m7medVision committed Jan 12, 2024
1 parent 670f4f5 commit 5abc172
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions islands/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,20 @@ export default function Editor(props: CounterProps) {
const runOutput = handleCodeRun();
const testcases = props.testcases;
// TODO: work on this later
const pass = doTests(testcases, code, runOutput);
if (pass) {
showToast({
msg: "تم تجاوز الاختبارات بنجاح",
type: "success",
});
return;
} else {
showToast({
msg: "لم يتم تجاوز الاختبارات",
type: "error",
});
return;
}
// const pass = doTests(testcases, code, runOutput);
// if (pass) {
// showToast({
// msg: "تم تجاوز الاختبارات بنجاح",
// type: "success",
// });
// return;
// } else {
// showToast({
// msg: "لم يتم تجاوز الاختبارات",
// type: "error",
// });
// return;
// }
showToast({
msg: "هذه الخاصية غير متوفرة حالياً",
type: "warning",
Expand Down

0 comments on commit 5abc172

Please sign in to comment.