Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1-4 Task. TapeGhad #72

Open
wants to merge 36 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
53def7b
async task
IlyaMokin Apr 3, 2016
702d9b5
async task description
IlyaMokin Apr 3, 2016
c47a9b6
async task, tests fixes
IlyaMokin Apr 3, 2016
5faf64b
Merge branch 'async_task'
IlyaMokin Sep 12, 2017
6ea5858
added a comment for async task
IlyaMokin Sep 12, 2017
dbb7799
new timeSpanToString test
Sep 14, 2017
b1392c0
additional getFactorial test
IlyaMokin Sep 16, 2017
c015aae
depthTraversalTree test, timeout increase
IlyaMokin Sep 16, 2017
40d6ba4
async additional test
IlyaMokin Sep 21, 2017
df9bce0
additional test for domino task
VadimSemenuk Sep 22, 2017
b2cef11
Merge pull request #17 from VadimSemenuk/master
IlyaMokin Sep 24, 2017
9c82b05
Merge branch 'parseDataFromRfc2822' into aisedu_master
IlyaMokin Sep 24, 2017
96f0d13
additional test to retry task
VadimSemenuk Sep 26, 2017
323599e
fix
VadimSemenuk Sep 26, 2017
db62c06
fix
VadimSemenuk Sep 26, 2017
c3b9e84
Merge pull request #22 from VadimSemenuk/retryTestFix
IlyaMokin Sep 26, 2017
b574239
retry test fix
VadimSemenuk Sep 26, 2017
43cf153
fix
VadimSemenuk Sep 26, 2017
a7aa45d
Merge pull request #23 from VadimSemenuk/retryTestFix
IlyaMokin Sep 27, 2017
fdc6982
Merge remote-tracking branch 'init/master'
IlyaMokin Jun 29, 2020
827e2c9
travis
IlyaMokin Jun 29, 2020
9e6cd26
Update the links
TapeGhad Jun 30, 2020
79a2f5a
task1-4
TapeGhad Jul 3, 2020
0381434
task_1_4
TapeGhad Jul 3, 2020
ecb2d04
task_1_4
TapeGhad Jul 3, 2020
5c58e89
task_1_4
TapeGhad Jul 3, 2020
ad88a75
task_1_4
TapeGhad Jul 10, 2020
97e0327
task_1_4
TapeGhad Jul 10, 2020
9b0af16
task_1_4
TapeGhad Jul 10, 2020
8c38905
task_1_4
TapeGhad Jul 10, 2020
e46fe00
task_1_4
TapeGhad Jul 10, 2020
33553bd
task_1_4
TapeGhad Jul 11, 2020
38e8782
task_1_4
TapeGhad Jul 11, 2020
047ddc8
task_1_4
TapeGhad Jul 11, 2020
a614d6a
task_1_4
TapeGhad Jul 15, 2020
7bfdbdd
okay
TapeGhad Jul 24, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
language: node_js
node_js:
- "5.10.0"
- "12.16.1"
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![Brest Rolling Scopes](http://brest.rollingscopes.com/images/logo_rs_text.svg)](http://brest.rollingscopes.com/)
#Brest Rolling Scopes School
## Javascript Assignments [![Build Status](https://travis-ci.org/rolling-scopes-school/js-assignments.svg?branch=master)](https://travis-ci.org/rolling-scopes-school/js-assignments)
## Javascript Assignments [![Build Status](https://travis-ci.org/AisBrestEDU/js-assignments.svg?branch=master)](https://travis-ci.org/AisBrestEDU/js-assignments)

Yet another javascript assignments. There are a lot of interactive javascript resources for beginners, but most of them are online and do not cover the modern programming workflow. There are some excellent training resources on github (https://github.com/rmurphey/js-assessment, https://github.com/mrdavidlaing/javascript-koans, https://github.com/vasanthk/js-bits etc) but they are not exactly simulate the everyday programming process. So the motivation of this project is to show TDD process in the wild to the beginners. Assingment tests are implemented in various ways to feel a difference and gain the experience what manner is good, what is bad and what is ugly.

Expand All @@ -22,14 +22,14 @@ To start javascript assignments please follow the next steps:
### How to setup travis-ci
* Open [https://travis-ci.org/](https://travis-ci.org/) and sign in with your github account.
* Activate your forked repo **js-assignments**.
* Edit local README.md file and update all links (just replace all occurrences of `'rolling-scopes-school'` with your account name).
* Edit local README.md file and update all links (just replace all occurrences of `'TapeGhad'` with your account name).
* Commit and push updated README.md to github:
```bash
git add README.md
git commit -m "Update the links"
git push origin master
```
* Open https://github.com/rolling-scopes-school/js-assignments and test the build icon. Now it will run all tests and update status once you push changes to github. Keep this icon green!
* Open https://github.com/TapeGhad/js-assignments and test the build icon. Now it will run all tests and update status once you push changes to github. Keep this icon green!


### How to setup work environment
Expand Down Expand Up @@ -73,7 +73,7 @@ and run the unit tests again. Find one test failed (red). Now it's time to fix i
* Implement the function by any way and verify your solution by running tests until the failed test become passed (green).
* Your solution work, but now time to refactor it. Try to make your code as pretty and simple as possible keeping up the test green.
* Once you can't improve your code and tests are passed you can commit your solution.
* Push your updates to github server and check if tests passed on [travis-ci](https://travis-ci.org/rolling-scopes-school/js-assignments/builds).
* Push your updates to github server and check if tests passed on [travis-ci](https://travis-ci.org/TapeGhad/js-assignments/builds).
* If everything is OK you can try to resolve the next task.

### How to debug tasks
Expand Down
19 changes: 13 additions & 6 deletions extensions/it-optional.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,23 @@
exports = module.exports = testOptional;

function testOptional(title, fn) {

it(title, function() {
try {
fn.call(this);
} catch (err) {
if (err.message=="Not implemented") {

it(title, function () {
let errHandler = (err) => {
if (err.message == "Not implemented") {
this.test.skip();
} else {
throw err;
}
};

try {
let promise = fn.call(this);
if (promise && promise.catch) {
return promise.catch(errHandler);
}
} catch (err) {
errHandler(err);
}
});

Expand Down
11 changes: 11 additions & 0 deletions launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
}
]
}
154 changes: 154 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
"author": "aorgish",
"license": "MIT",
"devDependencies": {
"mocha": "^2.3.4"
"mocha": "^2.5.3"
},
"repository" : {
"type" : "git",
"url" : "https://github.com/rolling-scopes-school/js-assignments.git"
"repository": {
"type": "git",
"url": "https://github.com/rolling-scopes-school/js-assignments.git"
}
}
Loading