You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -72,9 +72,9 @@ Don't worry too much yet if it's hard to understand what is happening inside of
72
72
73
73
## Running the Tests
74
74
75
-
To run the tests, simply type `learn-test` in the terminal part of the Learn IDE. (The terminal is the part below where you've been coding.)
75
+
To run the tests, simply type `learn` in the terminal part of the Learn IDE. (The terminal is the part below where you've been coding.)
76
76
77
-
Running the `learn-test` command will open up a new tab on your browser, showing the current status of the tests. For the moment, all of the tests fail. Let's figure out how to get one of them passing! (The rest will be up to you.)
77
+
Running the `learn` command will open up a new tab on your browser, showing the current status of the tests. For the moment, all of the tests fail. Let's figure out how to get one of them passing! (The rest will be up to you.)
78
78
79
79
To get our first test to pass, we can open up our `index.js` file, and write the following:
80
80
@@ -88,7 +88,7 @@ Great, our first test is now passing. Except the second test is also about `comp
88
88
89
89
Ok, so we'll let you work through the problems below. But in summary here is your workflow for a lab:
90
90
91
-
1. Run `learn-test`.
91
+
1. Run `learn`.
92
92
93
93
2. Read the errors; vocalize what they're asking you to do.
94
94
@@ -103,7 +103,7 @@ Ok, so we'll let you work through the problems below. But in summary here is yo
103
103
104
104
If you open up `test/indexTest.js`, you will see the tasks in front of you.
105
105
106
-
+`companyName` - Inside the `test/indexTest`, look inside of the word `describe` where the tests are trying to indicate that this test is describing the `companyName` variable. The `it` word that comes afterwords, tells us the features of `companyName`. In the first `it` function call, it says that `it` (companyName) `is set as Scuber`. In the next line, you can see that the test checks to make sure this occurs by seeing if `companyName` equals `Scuber`. So this means that you need to go to your `index.js` file and declare a variable named `companyName` and set it equal to `Scuber`. Once you do that, if `learn-test` is running, you will see the first test in this lab as passing.
106
+
+`companyName` - Inside the `test/indexTest`, look inside of the word `describe` where the tests are trying to indicate that this test is describing the `companyName` variable. The `it` word that comes afterwords, tells us the features of `companyName`. In the first `it` function call, it says that `it` (companyName) `is set as Scuber`. In the next line, you can see that the test checks to make sure this occurs by seeing if `companyName` equals `Scuber`. So this means that you need to go to your `index.js` file and declare a variable named `companyName` and set it equal to `Scuber`. Once you do that, if `learn` is running, you will see the first test in this lab as passing.
107
107
108
108
In the next `it` function call, we are still describing `companyName`. This time, it says it `raises error if the companyName is changed`. The next line of code tests this. It's ok if some of the code in that line are confusing. Just know that the code attempts to change `companyName` to a different value, and that this reassignment to throw an error. So you need to make sure that you are using the correct variable type such that reassigning the variable would throw an error.
0 commit comments