tracks/javascript/exercises/two-fer/README.md in trackler-2.2.1.94 vs tracks/javascript/exercises/two-fer/README.md in trackler-2.2.1.95

- old
+ new

@@ -1,41 +1,46 @@ # Two Fer `Two-fer` or `2-fer` is short for two for one. One for you and one for me. -``` +```text "One for X, one for me." ``` When X is a name or "you". If the given name is "Alice", the result should be "One for Alice, one for me." If no name is given, the result should be "One for you, one for me." + ## Setup -Go through the setup instructions for JavaScript to -install the necessary dependencies: +Go through the setup instructions for JavaScript to install the + necessary dependencies: -http://exercism.io/languages/javascript +http://exercism.io/languages/javascript/installation -## Making the Test Suite Pass +## Running the test suite -Execute the tests with: +The provided test suite uses [Jasmine](https://jasmine.github.io/). +You can install it by opening a terminal window and running the +following command: - jasmine <exercise-name>.spec.js +```sh +npm install -g jasmine +``` -Replace `<exercise-name>` with the name of the current exercise. E.g., to -test the Two Fer exercise: +Run the test suite from the exercise directory with: - jasmine two-fer.spec.js +```sh +jasmine two-fer.spec.js +``` -All tests but the first have been skipped. Once you get a test passing, -you can unskip the next one by changing `xit` to `it`. +In many test suites all but the first test have been marked "pending". +Once you get a test passing, activate the next one by changing `xit` to `it`. ## Source -This is an exercise to introduce users to basic programming constructs, just after 'Hello World'. [https://en.wikipedia.org/wiki/Two-fer](https://en.wikipedia.org/wiki/Two-fer) +This is an exercise to introduce users to basic programming constructs, just after Hello World. [https://en.wikipedia.org/wiki/Two-fer](https://en.wikipedia.org/wiki/Two-fer) ## Submitting Incomplete Solutions It's possible to submit an incomplete solution so you can see how others have completed the exercise. -