@@ -43,8 +43,9 @@ that matter, will still have CONTRIBUTING.md, LICENSE.md, and README.md files.)
43
43
44
44
### Code Along
45
45
46
- Open up ` index.js ` in your text editor; you should see, well, nothing. We'll fix
47
- that soon.
46
+ ** Fork and clone** this lesson's repo to your local environment, then open up
47
+ ` index.js ` in your text editor; you should see, well, nothing. We'll fix that
48
+ soon.
48
49
49
50
Now open up ` test/indexTest.js ` . Hey, there's something! What's all of this
50
51
stuff doing?
@@ -95,10 +96,10 @@ gather the information that you can. We will also provide instructions in the
95
96
96
97
## Running the Tests
97
98
98
- To run the tests, type ` learn test` in the terminal. You should now see the
99
- current status of the tests in the terminal. For the moment, all of the tests
100
- fail. Let's figure out how to get one of them passing! (The rest will be up to
101
- you.)
99
+ Start by installing the test dependencies by running ` npm install ` in the
100
+ terminal, then run ` npm test ` to run the tests. You should now see the current
101
+ status of the tests in the terminal. For the moment, all of the tests fail.
102
+ Let's figure out how to get one of them passing! (The rest will be up to you.)
102
103
103
104
To get our first test to pass, we can open up our ` index.js ` file, and write the
104
105
following:
@@ -107,7 +108,7 @@ following:
107
108
let companyName = ' Scuber' ;
108
109
```
109
110
110
- If you run ` learn test` again, you'll see that our first test is now passing.
111
+ If you run ` npm test` again, you'll see that our first test is now passing.
111
112
However, the second test, which is also about ` companyName ` , is not yet passing.
112
113
It's not passing because it expects ` companyName ` to be declared using a
113
114
different keyword than the ` let ` keyword — it needs a keyword that is used for
@@ -116,11 +117,14 @@ variables that can't be changed...
116
117
Continue to work through the problems below. Keep in mind the general workflow
117
118
for a lab:
118
119
119
- 1 . Run ` learn test` .
120
+ 1 . Run ` npm test` .
120
121
2 . Read the errors; vocalize what they're asking you to do.
121
122
3 . Write code; repeat steps 1 and 2 often until a test passes.
122
123
4 . Repeat as needed until all the tests are passing.
123
124
125
+ Once you have all the tests passing, commit and push your changes to GitHub,
126
+ then submit your work using CodeGrade.
127
+
124
128
## Working Through the Problems
125
129
126
130
If you open up ` test/indexTest.js ` , you will see the tasks in front of you:
0 commit comments