Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3b8c8d9

Browse files
committed
Added instruction to run npm test before submitting PR
1 parent 3bab08e commit 3b8c8d9

File tree

3 files changed

+46
-24
lines changed

3 files changed

+46
-24
lines changed

Week1/MAKEME.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,13 +210,21 @@ It should include the following components:
210210

211211
### 1.7 Handing in your homework
212212

213+
To determine if your code will be accepted when you submit your homework as a pull request you need to ensure that it does not contain linting errors. Open a terminal window in VSCode and type the following command:
214+
215+
```
216+
npm test
217+
```
218+
219+
If any errors or warnings are reported by this command you need to fix them before submitting a pull request.
220+
221+
In addition, check for the following:
222+
213223
- Have you removed all commented out code (should never be present in a PR)?
214-
- Have you used `const` and `let` and avoided `var`?
215224
- Do the variable, function and argument names you created follow the [Naming Conventions](../../../../fundamentals/blob/master/fundamentals/naming_conventions.md)?
216225
- Is your code well-formatted (see [Code Formatting](../../../../fundamentals/blob/master/fundamentals/code_formatting.md))?
217-
- Have you resolved all issues flagged by ESLint and the spell checker (no wavy red and green underlines in VSCode)?
218226

219-
If the answer is 'yes' to all preceding questions you are ready to follow these instructions:
227+
If the answer is 'yes' to the preceding questions you are ready to follow these instructions:
220228

221229
1. Push your `week1` branch to GitHub:
222230

Week2/MAKEME.md

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,11 @@ Topics discussed this week:
1313

1414
- If you are still not completely clear on promises, here are some additional resources :ring:
1515

16-
- [Google's post about Promises](https://developers.google.com/web/fundamentals/getting-started/primers/promises)
17-
- [A nice article from David Walsh](https://davidwalsh.name/promises)
18-
- [A real life example](https://github.com/mdn/js-examples/blob/master/promises-test/index.html)
19-
- [stackoverflow](http://stackoverflow.com/questions/13343340/calling-an-asynchronous-function-within-a-for-loop-in-javascript)
20-
- YouTube: [promises](https://www.youtube.com/watch?v=WBupia9oidU)
21-
16+
- [Google's post about Promises](https://developers.google.com/web/fundamentals/getting-started/primers/promises)
17+
- [A nice article from David Walsh](https://davidwalsh.name/promises)
18+
- [A real life example](https://github.com/mdn/js-examples/blob/master/promises-test/index.html)
19+
- [stackoverflow](http://stackoverflow.com/questions/13343340/calling-an-asynchronous-function-within-a-for-loop-in-javascript)
20+
- YouTube: [promises](https://www.youtube.com/watch?v=WBupia9oidU)
2221

2322
## Step 2: Implement requested PR changes
2423

@@ -35,9 +34,9 @@ The homework for week 2 will build on the work you did in week 1. You will creat
3534
1. Make sure that you committed all changes in the week 1 version of your homework.
3635
2. Create a new `week2` branch:
3736

38-
```
39-
git checkout -b week2
40-
```
37+
```
38+
git checkout -b week2
39+
```
4140

4241
### 3.2 Assignment
4342

@@ -50,19 +49,27 @@ You will continue to work on the files `index.js` and (possibly) `style.css`.
5049

5150
### 3.3 Handing in your homework
5251

52+
To determine if your code will be accepted when you submit your homework as a pull request you need to ensure that it does not contain linting errors. Open a terminal window in VSCode and type the following command:
53+
54+
```
55+
npm test
56+
```
57+
58+
If any errors or warnings are reported by this command you need to fix them before submitting a pull request.
59+
60+
In addition, check for the following:
61+
5362
- Have you removed all commented out code (should never be present in a PR)?
54-
- Have you used `const` and `let` and avoided `var`?
5563
- Do the variable, function and argument names you created follow the [Naming Conventions](../../../../fundamentals/blob/master/fundamentals/naming_conventions.md)?
56-
- Is your code well-formatted (see [Code Formatting](../../../../fundamentals/blob/master/fundamentals/naming_conventions.md))?
57-
- Have you resolved all issues flagged by ESLint and the spell checker (no wavy red and green underlines in VSCode)?
64+
- Is your code well-formatted (see [Code Formatting](../../../../fundamentals/blob/master/fundamentals/code_formatting.md))?
5865

59-
If the answer is 'yes' to all preceding questions you are ready to follow these instructions:
66+
If the answer is 'yes' to the preceding questions you are ready to follow these instructions:
6067

6168
1. Push your `week2` branch to GitHub:
6269

63-
```
64-
git push -u origin week2
65-
```
70+
```
71+
git push -u origin week2
72+
```
6673

6774
2. Create a pull request for your `week2` branch.
6875

@@ -74,4 +81,3 @@ Note:
7481
## Step 4: Read before next lecture
7582

7683
Go through the reading material in the [README.md](../Week3/README.md) to prepare for your next class.
77-

Week3/MAKEME.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,21 @@ For the GitHub application ARIA-compliance means that the Contributors list shou
8080

8181
#### 2.2.4 Handing in your homework
8282

83+
To determine if your code will be accepted when you submit your homework as a pull request you need to ensure that it does not contain linting errors. Open a terminal window in VSCode and type the following command:
84+
85+
```
86+
npm test
87+
```
88+
89+
If any errors or warnings are reported by this command you need to fix them before submitting a pull request.
90+
91+
In addition, check for the following:
92+
8393
- Have you removed all commented out code (should never be present in a PR)?
84-
- Have you used `const` and `let` and avoided `var`?
8594
- Do the variable, function and argument names you created follow the [Naming Conventions](../../../../fundamentals/blob/master/fundamentals/naming_conventions.md)?
86-
- Is your code well-formatted (see [Code Formatting](../../../../fundamentals/blob/master/fundamentals/naming_conventions.md))?
87-
- Have you resolved all issues flagged by ESLint and the spell checker (no wavy red and green underlines in VSCode)?
95+
- Is your code well-formatted (see [Code Formatting](../../../../fundamentals/blob/master/fundamentals/code_formatting.md))?
8896

89-
If the answer is 'yes' to all preceding questions you are ready to follow these instructions:
97+
If the answer is 'yes' to the preceding questions you are ready to follow these instructions:
9098

9199
1. Push your `week3` branch to GitHub:
92100

0 commit comments

Comments
 (0)