aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2019-10-09 01:27:43 +0300
committerGitHub <[email protected]>2019-10-09 01:27:43 +0300
commit577bf8b14d76a864a8d69dbfb03b757fbeb6e241 (patch)
tree354238ff0aaca853a9698c191eeb4c2143c39c16 /js
parent1770691b339bdbf17de5e8824158b358dc0284a9 (diff)
downloadbootstrap-577bf8b14d76a864a8d69dbfb03b757fbeb6e241.tar.xz
bootstrap-577bf8b14d76a864a8d69dbfb03b757fbeb6e241.zip
Rename "js/tests/units" to "js/tests/unit". (#29503)
Diffstat (limited to 'js')
-rw-r--r--js/tests/README.md4
-rw-r--r--js/tests/karma.conf.js6
-rw-r--r--js/tests/unit/.eslintrc.json (renamed from js/tests/units/.eslintrc.json)0
-rw-r--r--js/tests/unit/alert.spec.js (renamed from js/tests/units/alert.spec.js)0
-rw-r--r--js/tests/unit/button.spec.js (renamed from js/tests/units/button.spec.js)0
-rw-r--r--js/tests/unit/carousel.spec.js (renamed from js/tests/units/carousel.spec.js)0
-rw-r--r--js/tests/unit/collapse.spec.js (renamed from js/tests/units/collapse.spec.js)0
-rw-r--r--js/tests/unit/dom/data.spec.js (renamed from js/tests/units/dom/data.spec.js)0
-rw-r--r--js/tests/unit/dom/event-handler.spec.js (renamed from js/tests/units/dom/event-handler.spec.js)0
-rw-r--r--js/tests/unit/dom/manipulator.spec.js (renamed from js/tests/units/dom/manipulator.spec.js)0
-rw-r--r--js/tests/unit/dom/selector-engine.spec.js (renamed from js/tests/units/dom/selector-engine.spec.js)0
-rw-r--r--js/tests/unit/dropdown.spec.js (renamed from js/tests/units/dropdown.spec.js)0
-rw-r--r--js/tests/unit/modal.spec.js (renamed from js/tests/units/modal.spec.js)0
-rw-r--r--js/tests/unit/popover.spec.js (renamed from js/tests/units/popover.spec.js)0
-rw-r--r--js/tests/unit/scrollspy.spec.js (renamed from js/tests/units/scrollspy.spec.js)0
-rw-r--r--js/tests/unit/tab.spec.js (renamed from js/tests/units/tab.spec.js)0
-rw-r--r--js/tests/unit/toast.spec.js (renamed from js/tests/units/toast.spec.js)0
-rw-r--r--js/tests/unit/tooltip.spec.js (renamed from js/tests/units/tooltip.spec.js)0
-rw-r--r--js/tests/unit/util/index.spec.js (renamed from js/tests/units/util/index.spec.js)0
-rw-r--r--js/tests/unit/util/sanitizer.spec.js (renamed from js/tests/units/util/sanitizer.spec.js)0
20 files changed, 5 insertions, 5 deletions
diff --git a/js/tests/README.md b/js/tests/README.md
index dd2cc0f1b..8823d05dc 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).
diff --git a/js/tests/karma.conf.js b/js/tests/karma.conf.js
index 8e3009410..624f5f638 100644
--- a/js/tests/karma.conf.js
+++ b/js/tests/karma.conf.js
@@ -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
diff --git a/js/tests/units/.eslintrc.json b/js/tests/unit/.eslintrc.json
index a8c1a6ae3..a8c1a6ae3 100644
--- a/js/tests/units/.eslintrc.json
+++ b/js/tests/unit/.eslintrc.json
diff --git a/js/tests/units/alert.spec.js b/js/tests/unit/alert.spec.js
index 32f11b618..32f11b618 100644
--- a/js/tests/units/alert.spec.js
+++ b/js/tests/unit/alert.spec.js
diff --git a/js/tests/units/button.spec.js b/js/tests/unit/button.spec.js
index a3c95be1b..a3c95be1b 100644
--- a/js/tests/units/button.spec.js
+++ b/js/tests/unit/button.spec.js
diff --git a/js/tests/units/carousel.spec.js b/js/tests/unit/carousel.spec.js
index a163f9ae4..a163f9ae4 100644
--- a/js/tests/units/carousel.spec.js
+++ b/js/tests/unit/carousel.spec.js
diff --git a/js/tests/units/collapse.spec.js b/js/tests/unit/collapse.spec.js
index 3122ae6f4..3122ae6f4 100644
--- a/js/tests/units/collapse.spec.js
+++ b/js/tests/unit/collapse.spec.js
diff --git a/js/tests/units/dom/data.spec.js b/js/tests/unit/dom/data.spec.js
index ab3240b9b..ab3240b9b 100644
--- a/js/tests/units/dom/data.spec.js
+++ b/js/tests/unit/dom/data.spec.js
diff --git a/js/tests/units/dom/event-handler.spec.js b/js/tests/unit/dom/event-handler.spec.js
index 5551ddaa3..5551ddaa3 100644
--- a/js/tests/units/dom/event-handler.spec.js
+++ b/js/tests/unit/dom/event-handler.spec.js
diff --git a/js/tests/units/dom/manipulator.spec.js b/js/tests/unit/dom/manipulator.spec.js
index 986f69298..986f69298 100644
--- a/js/tests/units/dom/manipulator.spec.js
+++ b/js/tests/unit/dom/manipulator.spec.js
diff --git a/js/tests/units/dom/selector-engine.spec.js b/js/tests/unit/dom/selector-engine.spec.js
index e13438e6f..e13438e6f 100644
--- a/js/tests/units/dom/selector-engine.spec.js
+++ b/js/tests/unit/dom/selector-engine.spec.js
diff --git a/js/tests/units/dropdown.spec.js b/js/tests/unit/dropdown.spec.js
index 0046cf680..0046cf680 100644
--- a/js/tests/units/dropdown.spec.js
+++ b/js/tests/unit/dropdown.spec.js
diff --git a/js/tests/units/modal.spec.js b/js/tests/unit/modal.spec.js
index 604934785..604934785 100644
--- a/js/tests/units/modal.spec.js
+++ b/js/tests/unit/modal.spec.js
diff --git a/js/tests/units/popover.spec.js b/js/tests/unit/popover.spec.js
index 1c6cd389c..1c6cd389c 100644
--- a/js/tests/units/popover.spec.js
+++ b/js/tests/unit/popover.spec.js
diff --git a/js/tests/units/scrollspy.spec.js b/js/tests/unit/scrollspy.spec.js
index 9ac02ce99..9ac02ce99 100644
--- a/js/tests/units/scrollspy.spec.js
+++ b/js/tests/unit/scrollspy.spec.js
diff --git a/js/tests/units/tab.spec.js b/js/tests/unit/tab.spec.js
index 3e45f4d03..3e45f4d03 100644
--- a/js/tests/units/tab.spec.js
+++ b/js/tests/unit/tab.spec.js
diff --git a/js/tests/units/toast.spec.js b/js/tests/unit/toast.spec.js
index ee623c8cc..ee623c8cc 100644
--- a/js/tests/units/toast.spec.js
+++ b/js/tests/unit/toast.spec.js
diff --git a/js/tests/units/tooltip.spec.js b/js/tests/unit/tooltip.spec.js
index 338638a2d..338638a2d 100644
--- a/js/tests/units/tooltip.spec.js
+++ b/js/tests/unit/tooltip.spec.js
diff --git a/js/tests/units/util/index.spec.js b/js/tests/unit/util/index.spec.js
index 42c273f06..42c273f06 100644
--- a/js/tests/units/util/index.spec.js
+++ b/js/tests/unit/util/index.spec.js
diff --git a/js/tests/units/util/sanitizer.spec.js b/js/tests/unit/util/sanitizer.spec.js
index c4259e7fd..c4259e7fd 100644
--- a/js/tests/units/util/sanitizer.spec.js
+++ b/js/tests/unit/util/sanitizer.spec.js