diff --git a/js/tests/entrypoint.sh b/js/tests/entrypoint.sh index 6e89170da..8bd2ced8e 100755 --- a/js/tests/entrypoint.sh +++ b/js/tests/entrypoint.sh @@ -7,4 +7,9 @@ if test "$CODE_EDITOR_RUN_ONLY" = true; then exit fi +if test $EXERCISE = "elementary"; then + node --disallow-code-generation-from-strings /app/test.mjs "/jail/student" "${EXERCISE}" + exit +fi + node /app/test.mjs "/jail/student" "${EXERCISE}"