Skip to content

Commit

Permalink
index-test => indexTest
Browse files Browse the repository at this point in the history
  • Loading branch information
lizbur10 committed Dec 22, 2022
1 parent e1ba980 commit b775445
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ else (usually multiple someones) wrote for our use. The code above makes the
libraries available inside our test environment, which enables us to run the
tests.

If you go to `test/index-test.js`, you'll see
If you go to `test/indexTest.js`, you'll see

```js
describe("shout(string)", function () {
Expand Down Expand Up @@ -119,43 +119,43 @@ $ npm test
1) shout(string)
receives one argument and returns it in all caps:
ReferenceError: shout is not defined
at Context.<anonymous> (test/index-test.js:4:5)
at Context.<anonymous> (test/indexTest.js:4:5)
at processImmediate (internal/timers.js:461:21)

2) whisper(string)
receives one argument and returns it in all lowercase:
ReferenceError: whisper is not defined
at Context.<anonymous> (test/index-test.js:10:5)
at Context.<anonymous> (test/indexTest.js:10:5)
at processImmediate (internal/timers.js:461:21)

3) logShout(string)
takes a string argument and logs it in all caps using console.log():
ReferenceError: logShout is not defined
at Context.<anonymous> (test/index-test.js:18:5)
at Context.<anonymous> (test/indexTest.js:18:5)
at processImmediate (internal/timers.js:461:21)

4) logWhisper(string)
takes a string argument and logs it in all lowercase using console.log():
ReferenceError: logWhisper is not defined
at Context.<anonymous> (test/index-test.js:30:5)
at Context.<anonymous> (test/indexTest.js:30:5)
at processImmediate (internal/timers.js:461:21)

5) sayHiToHeadphonedRoommate(string)
returns "I can't hear you!" if `string` is lowercase:
ReferenceError: sayHiToHeadphonedRoommate is not defined
at Context.<anonymous> (test/index-test.js:40:5)
at Context.<anonymous> (test/indexTest.js:40:5)
at processImmediate (internal/timers.js:461:21)

6) sayHiToHeadphonedRoommate(string)
returns "YES INDEED!" if `string` is uppercase:
ReferenceError: sayHiToHeadphonedRoommate is not defined
at Context.<anonymous> (test/index-test.js:44:5)
at Context.<anonymous> (test/indexTest.js:44:5)
at processImmediate (internal/timers.js:461:21)

7) sayHiToHeadphonedRoommate(string)
returns "I would love to!" if `string` is "Let's have dinner together!"`:
ReferenceError: sayHiToHeadphonedRoommate is not defined
at Context.<anonymous> (test/index-test.js:48:5)
at Context.<anonymous> (test/indexTest.js:48:5)
at processImmediate (internal/timers.j
```

Expand Down Expand Up @@ -186,7 +186,7 @@ $ npm test
1) shout(string)
receives one argument and returns it in all caps:
ReferenceError: shout is not defined
at Context.<anonymous> (test/index-test.js:4:5)
at Context.<anonymous> (test/indexTest.js:4:5)
at processImmediate (internal/timers.js:461:21)


Expand All @@ -202,7 +202,7 @@ at that first error:
1) shout(string)
receives one argument and returns it in all caps:
ReferenceError: shout is not defined
at Context.<anonymous> (test/index-test.js:4:5)
at Context.<anonymous> (test/indexTest.js:4:5)
at processImmediate (internal/timers.js:461:21)
```

Expand Down Expand Up @@ -236,7 +236,7 @@ we need to do:
Error: Expected undefined to equal 'HELLO'
at assert (node_modules/expect/lib/assert.js:29:9)
at Expectation.toEqual (node_modules/expect/lib/Expectation.js:81:30)
at Context.<anonymous> (test/index-test.js:4:28)
at Context.<anonymous> (test/indexTest.js:4:28)
at processImmediate (internal/timers.js:461:21)
```

Expand Down Expand Up @@ -285,7 +285,7 @@ and run our tests again. We get:
1) whisper(string)
receives one argument and returns it in all lowercase:
ReferenceError: whisper is not defined
at Context.<anonymous> (test/index-test.js:10:5)
at Context.<anonymous> (test/indexTest.js:10:5)
at processImmediate (internal/timers.js:461:21)
```

Expand All @@ -306,7 +306,7 @@ whisper or they shout. The next test is similar to the first:
1) whisper(string)
receives one argument and returns it in all lowercase:
ReferenceError: whisper is not defined
at Context.<anonymous> (test/index-test.js:10:5)
at Context.<anonymous> (test/indexTest.js:10:5)
at processImmediate (internal/timers.js:456:21)
```

Expand Down

0 comments on commit b775445

Please sign in to comment.