educative.io

Exercise widget doesn't see the implementation of square()

I’m trying to create a toy example of the “exercise” widget.
The Stub asks for the function ‘square(n)’. When I try to the test in preview mode, I get the error message In the following image.
I don’t understand why the function executeTests() doesn’t see my function square()


Course: Educative: Interactive Courses for Software Developers
Lesson: Code Widget: Coding Exercises - Create Courses Using Educative's Publishing Platform