icoa-cli 2.15.8 → 2.15.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/exam.js +6 -5
- package/package.json +1 -1
package/dist/commands/exam.js
CHANGED
|
@@ -819,13 +819,14 @@ export function registerExamCommand(program) {
|
|
|
819
819
|
const existing = getExamState();
|
|
820
820
|
if (existing) {
|
|
821
821
|
if (existing.session.examId === 'demo-free') {
|
|
822
|
-
|
|
823
|
-
|
|
822
|
+
// Demo: always restart fresh
|
|
823
|
+
clearExamState();
|
|
824
|
+
}
|
|
825
|
+
else {
|
|
826
|
+
printWarning(`Exam "${existing.session.examName}" is in progress.`);
|
|
827
|
+
printInfo('Submit it first: exam submit');
|
|
824
828
|
return;
|
|
825
829
|
}
|
|
826
|
-
printWarning(`Exam "${existing.session.examName}" is in progress.`);
|
|
827
|
-
printInfo('Submit it first: exam submit');
|
|
828
|
-
return;
|
|
829
830
|
}
|
|
830
831
|
console.log();
|
|
831
832
|
printHeader('ICOA Demo Exam — Free Practice');
|