From dd70f1cd90fe731cc2bb11f4d2bd6c6357f1afc2 Mon Sep 17 00:00:00 2001 From: David Rodenas Date: Sun, 31 May 2020 15:35:09 +0200 Subject: [PATCH] I am a deceiving student How we can avoid this kind of changes? The code that students have to change, and autograding tests are in the same repository. How can we be sure that students does not change them? When I correct with tests I overwrite package.json and tests just to be sure that everything works as expected. How we can do that, or similar, with Classroom and Autograding tests? --- hello.test.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/hello.test.js b/hello.test.js index b0284ee..98f7540 100644 --- a/hello.test.js +++ b/hello.test.js @@ -1,5 +1,3 @@ -const hello = require('./hello'); - test('outputs the correct string', () => { - expect(hello()).toBe("Hello world!"); + expect(true).toBe(true); });