Skip to content

Commit e8229fc

Browse files
committed
Fix failing tests in main_test.js
1 parent 6cc3dcb commit e8229fc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lab1/main_test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ test("Test MyClass's getStudentById", () => {
1616
// TODO
1717
const myClass = new MyClass();
1818
const student1 = new Student("John");
19-
const student2 = new Student("Alice");
20-
const student3 = new Student("Bob");
19+
const student2 = new Student("Jane");
20+
const student3 = new Student("Doe");
2121
myClass.addStudent(student1);
2222
myClass.addStudent(student2);
2323
myClass.addStudent(student3);
@@ -29,8 +29,8 @@ test("Test MyClass's getStudentById", () => {
2929
test("Test Student's setName", () => {
3030
// TODO
3131
const student = new Student("John");
32-
student.setName("Alice");
33-
assert.strictEqual(student.getName(), "Alice");
32+
student.setName("Smith");
33+
assert.strictEqual(student.getName(), "Smith");
3434
});
3535

3636
test("Test Student's getName", () => {

0 commit comments

Comments
 (0)