Tasks of JS webinar.
- NodeJS 8 (6 is also supported)
$> git clone https://github.com/szikszail/js-webinar.git $> cd js-webinar $> npm install
To run tests for each module, you can use the
$> npm run test:module-N
N is the number of modules, i.e. 1-5.
For example to run the test for the first module, use
$> npm run test:module-1
To solve the tasks of each module first you should read carefully both the documentation (i.e.
/** */) and simple comments (i.e.,
/* */), but in short the following actions should be taken:
The solution code should be written between the comment lines which indicates it and the result should be assigned to the given variable:
// PLACE YOUR CODE BETWEEN THIS... resultVariable = 42; // ...AND THIS COMMENT LINE!
In this module the Mocha test suites and test cases should be defined in
The implementation of the suites and cases is not the main task in this module, but it can be done.
In this module the task is to create Element, Elements, Layout and HomePage classes according to what is written in the presentation.
In this module the task is to create the functions based on the documentation comments.
In this module the task it to create a feature file, based on the test cases from TEST-CASES.md, and to create the pending step definitions.
The repository also contains couple of additional tasks to solve in the
plus folder. To run the tests for these tasks, the
npm run test:plus command can be used.
First of all, tests can be used to check whether the solutions are good or not. On the other, if the implementations are pushed to a forked repository and a pull request is opened to the master branch, it is going to be reviewed.
To have a forked repository and create pull request, the following steps could be done:
Create a GitHub account.
Fork the repository, using the Fork button, which can be found in the top-right corner.
Clone your instance of the forked repository to your computer:
$> git clone https://github.com/<your-user-name>/js-webinar.git $> cd js-webinar
To get updates and latest version, you should set the original repository as another remote:
$> git remote add source https://github.com/szikszail/js-webinar.git
Anytime, you want to update your code with latest changes on the original repository, the following command should be executed:
$> git pull source
If you have done any change, you can commit and push it to your repository:
$> git add . $> git commit -am "<describe-your-changes> $> git push origin master
Create a pull request either by using the option which GitHub offers in your repository, OR using the Create Pull request option above the file list.
Note that the Compare across forks might need to be clicked first to see the forked repository (yours too).
Important! These review pull requests won't be merged to any branch of the original repository.