We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a07575 commit a1cc331Copy full SHA for a1cc331
src/helpers/exercise/tests.js
@@ -42,17 +42,18 @@ export const transformTestsValues = formData => {
42
let tests = [];
43
44
for (const test of formData.tests) {
45
+ const testName = test.name.trim();
46
const testWeight = uniformScore ? 100 : Number(test.weight);
- scoreConfigData.testWeights[test.name] = testWeight;
47
+ scoreConfigData.testWeights[testName] = testWeight;
48
49
tests.push(
50
test.id
51
? {
52
id: test.id,
- name: test.name,
53
+ name: testName,
54
}
55
: {
56
57
58
);
59
0 commit comments