Skip to content

Commit 357d5c3

Browse files
authored
Update tests.js
1 parent 0cafe37 commit 357d5c3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

exercises/07.1-Finding-Waldo/tests.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ it('You have to use the console.log function inside the loop', function () {
1313
expect(console.log.mock.calls.length > 0).toBe(true);
1414
});
1515

16-
it('Use a for loop', function () {
16+
it('Use a "for" loop', function () {
1717
const app_content = fs.readFileSync(path.resolve(__dirname, './app.js'), 'utf8');
1818
expect(app_content).toMatch(/for(\s*)\(/);
1919
});
@@ -23,9 +23,9 @@ it('Use the toLowerCase function', function () {
2323
expect(app_content).toMatch(/\.toLowerCase(\s*)\(/);
2424
});
2525

26-
it('Loop and add a conditional to print the position (i) where Waldo was fund', function () {
26+
it('Loop and add a conditional to print the position (i) where Waldo was found', function () {
2727
const _app = rewire('./app.js');
2828
const people = _app.__get__('people');
2929
const position = people.indexOf("Waldo");
3030
expect(_buffer.includes(position+"\n")).toBe(true);
31-
});
31+
});

0 commit comments

Comments
 (0)