]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Rename "js/tests/units" to "js/tests/unit". (#29503)
authorXhmikosR <xhmikosr@gmail.com>
Tue, 8 Oct 2019 22:27:43 +0000 (01:27 +0300)
committerGitHub <noreply@github.com>
Tue, 8 Oct 2019 22:27:43 +0000 (01:27 +0300)
20 files changed:
js/tests/README.md
js/tests/karma.conf.js
js/tests/unit/.eslintrc.json [moved from js/tests/units/.eslintrc.json with 100% similarity]
js/tests/unit/alert.spec.js [moved from js/tests/units/alert.spec.js with 100% similarity]
js/tests/unit/button.spec.js [moved from js/tests/units/button.spec.js with 100% similarity]
js/tests/unit/carousel.spec.js [moved from js/tests/units/carousel.spec.js with 100% similarity]
js/tests/unit/collapse.spec.js [moved from js/tests/units/collapse.spec.js with 100% similarity]
js/tests/unit/dom/data.spec.js [moved from js/tests/units/dom/data.spec.js with 100% similarity]
js/tests/unit/dom/event-handler.spec.js [moved from js/tests/units/dom/event-handler.spec.js with 100% similarity]
js/tests/unit/dom/manipulator.spec.js [moved from js/tests/units/dom/manipulator.spec.js with 100% similarity]
js/tests/unit/dom/selector-engine.spec.js [moved from js/tests/units/dom/selector-engine.spec.js with 100% similarity]
js/tests/unit/dropdown.spec.js [moved from js/tests/units/dropdown.spec.js with 100% similarity]
js/tests/unit/modal.spec.js [moved from js/tests/units/modal.spec.js with 100% similarity]
js/tests/unit/popover.spec.js [moved from js/tests/units/popover.spec.js with 100% similarity]
js/tests/unit/scrollspy.spec.js [moved from js/tests/units/scrollspy.spec.js with 100% similarity]
js/tests/unit/tab.spec.js [moved from js/tests/units/tab.spec.js with 100% similarity]
js/tests/unit/toast.spec.js [moved from js/tests/units/toast.spec.js with 100% similarity]
js/tests/unit/tooltip.spec.js [moved from js/tests/units/tooltip.spec.js with 100% similarity]
js/tests/unit/util/index.spec.js [moved from js/tests/units/util/index.spec.js with 100% similarity]
js/tests/unit/util/sanitizer.spec.js [moved from js/tests/units/util/sanitizer.spec.js with 100% similarity]

index dd2cc0f1b98448924a7237fae48f682f70bcaba0..8823d05dc54651a57694b4b2a1f503e8e8085f6c 100644 (file)
@@ -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).
index 8e3009410473c6aec5863be17f7f28181bc32939..624f5f638a768395fde96143d5b6e53adb486af2 100644 (file)
@@ -58,15 +58,15 @@ const conf = {
   },
   files: [
     'node_modules/hammer-simulator/index.js',
-    { pattern: 'js/tests/units/**/*.spec.js', watched: !browserStack }
+    { pattern: 'js/tests/unit/**/*.spec.js', watched: !browserStack }
   ],
   preprocessors: {
-    'js/tests/units/**/*.spec.js': ['rollup']
+    'js/tests/unit/**/*.spec.js': ['rollup']
   },
   rollupPreprocessor: {
     plugins: [
       istanbul({
-        exclude: ['js/tests/units/**/*.spec.js', 'js/tests/helpers/**/*.js']
+        exclude: ['js/tests/unit/**/*.spec.js', 'js/tests/helpers/**/*.js']
       }),
       babel({
         // Only transpile our source code