Skip to content

Commit 635ea84

Browse files
committed
Updates for CodeGrade
1 parent 80836b7 commit 635ea84

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

README.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ that matter, will still have CONTRIBUTING.md, LICENSE.md, and README.md files.)
4343

4444
### Code Along
4545

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.
4849

4950
Now open up `test/indexTest.js`. Hey, there's something! What's all of this
5051
stuff doing?
@@ -95,10 +96,10 @@ gather the information that you can. We will also provide instructions in the
9596

9697
## Running the Tests
9798

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.)
102103

103104
To get our first test to pass, we can open up our `index.js` file, and write the
104105
following:
@@ -107,7 +108,7 @@ following:
107108
let companyName = 'Scuber';
108109
```
109110

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.
111112
However, the second test, which is also about `companyName`, is not yet passing.
112113
It's not passing because it expects `companyName` to be declared using a
113114
different keyword than the `let` keyword — it needs a keyword that is used for
@@ -116,11 +117,14 @@ variables that can't be changed...
116117
Continue to work through the problems below. Keep in mind the general workflow
117118
for a lab:
118119

119-
1. Run `learn test`.
120+
1. Run `npm test`.
120121
2. Read the errors; vocalize what they're asking you to do.
121122
3. Write code; repeat steps 1 and 2 often until a test passes.
122123
4. Repeat as needed until all the tests are passing.
123124

125+
Once you have all the tests passing, commit and push your changes to GitHub,
126+
then submit your work using CodeGrade.
127+
124128
## Working Through the Problems
125129

126130
If you open up `test/indexTest.js`, you will see the tasks in front of you:

0 commit comments

Comments
 (0)