diff options
author | XhmikosR <xhmikosr@gmail.com> | 2019-10-09 01:27:43 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-09 01:27:43 +0300 |
commit | 577bf8b14d76a864a8d69dbfb03b757fbeb6e241 (patch) | |
tree | 354238ff0aaca853a9698c191eeb4c2143c39c16 /js/tests/README.md | |
parent | 1770691b339bdbf17de5e8824158b358dc0284a9 (diff) |
Rename "js/tests/units" to "js/tests/unit". (#29503)
Diffstat (limited to 'js/tests/README.md')
-rw-r--r-- | js/tests/README.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/tests/README.md b/js/tests/README.md index dd2cc0f1b9..8823d05dc5 100644 --- a/js/tests/README.md +++ b/js/tests/README.md @@ -1,6 +1,6 @@ ## How does Bootstrap's test suite work? -Bootstrap uses [Jasmine](https://jasmine.github.io/). Each plugin has a file dedicated to its tests in `tests/units/<plugin-name>.spec.js`. +Bootstrap uses [Jasmine](https://jasmine.github.io/). Each plugin has a file dedicated to its tests in `tests/unit/<plugin-name>.spec.js`. * `visual/` contains "visual" tests which are run interactively in real browsers and require manual verification by humans. @@ -9,7 +9,7 @@ To run the unit test suite via [Karma](https://karma-runner.github.io/) and debu ## How do I add a new unit test? -1. Locate and open the file dedicated to the plugin which you need to add tests to (`tests/units/<plugin-name>.spec.js`). +1. Locate and open the file dedicated to the plugin which you need to add tests to (`tests/unit/<plugin-name>.spec.js`). 2. Review the [Jasmine API Documentation](https://jasmine.github.io/pages/docs_home.html) and use the existing tests as references for how to structure your new tests. 3. Write the necessary unit test(s) for the new or revised functionality. 4. Run `npm run js-test` to see the results of your newly-added test(s). |