Skip to content

Commit 72ded48

Browse files
authored
Update main_test.js
1 parent 3b5c218 commit 72ded48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lab2/main_test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ test('Application constructor should initialize people and selected', async () =
5050

5151
// Test: getRandomPerson returns a valid name.
5252
test('Application.getRandomPerson should return a valid name', () => {
53-
const app =tionWithoutFileRead();
53+
const app = createTestApplicationWithoutFileRead();
5454
app.people = ['Alice', 'Bob', 'Charlie'];
5555

5656
const originalRandom = Math.random;
@@ -69,7 +69,7 @@ test('Application.selectNextPerson should avoid duplicates', () => {
6969
app.selected = ['Alice'];
7070

7171
const originalRandom = Math.random;
72-
// Force Math.random to return a value that se createTestApplicalects 'Charlie'
72+
// Force Math.random to return a value that selects 'Charlie'
7373
Math.random = () => 0.8; // floor(0.8 * 3) = 2 -> 'Charlie'
7474

7575
const person = app.selectNextPerson();

0 commit comments

Comments
 (0)