From 2889de7f0c2d587a17fbd322af57c29e84238620 Mon Sep 17 00:00:00 2001
From: Hong-Phuc Bui <hong-phuc.bui@htwsaar.de>
Date: Thu, 16 Jan 2025 12:22:14 +0100
Subject: [PATCH] update parcel

---
 stundenplan/test/lib/Lecture-es5-test.js |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/stundenplan/test/lib/Lecture-es5-test.js b/stundenplan/test/lib/Lecture-es5-test.js
index 3ed8786..2506a31 100644
--- a/stundenplan/test/lib/Lecture-es5-test.js
+++ b/stundenplan/test/lib/Lecture-es5-test.js
@@ -4,7 +4,7 @@
 
 test("Lecture: constructor:", t=>{
     const name = "Informatic", ects = 5, sws = 3;
-    let informatic = new Lecture(name, ects, sws, );
+    const informatic = new Lecture(name, ects, sws, );
     t.is(informatic.name, name);
     t.is(informatic.sws, sws);
     t.is(informatic.ects, ects);
@@ -12,15 +12,15 @@
 
 
 test("Lecture: get Effort", t =>{
-    let computerScience = new Lecture("JavaScript", 5, 4);
-    let effort = computerScience.effortPerWeek(15);
+    const computerScience = new Lecture("JavaScript", 5, 4);
+    const effort = computerScience.effortPerWeek(15);
     t.is(effort, 7);
-    let lectures = [
+    const lectures = [
         new Lecture("Informatik 1",     5, 4),
         new Lecture("Programmierung 1", 8, 5),
         new Lecture("JavaScript",       5, 4)
     ];
-    let effortOfWeek = lectures.reduce( (acc, l) => l.effortPerWeek(15) + acc, 0);
+    const effortOfWeek = lectures.reduce( (acc, l) => l.effortPerWeek(15) + acc, 0);
     const expected = 26.25;
     const tolerance = 0.01;
     t.truthy( Math.abs(effortOfWeek - expected) < tolerance );

--
Gitblit v1.10.0-SNAPSHOT