Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js/tests
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2019-10-09 01:27:43 +0300
committerGitHub <noreply@github.com>2019-10-09 01:27:43 +0300
commit577bf8b14d76a864a8d69dbfb03b757fbeb6e241 (patch)
tree354238ff0aaca853a9698c191eeb4c2143c39c16 /js/tests
parent1770691b339bdbf17de5e8824158b358dc0284a9 (diff)
Rename "js/tests/units" to "js/tests/unit". (#29503)
Diffstat (limited to 'js/tests')
-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 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).
diff --git a/js/tests/karma.conf.js b/js/tests/karma.conf.js
index 8e30094104..624f5f638a 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 a8c1a6ae34..a8c1a6ae34 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 32f11b6188..32f11b6188 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 a3c95be1ba..a3c95be1ba 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 a163f9ae41..a163f9ae41 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 3122ae6f4b..3122ae6f4b 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 ab3240b9bb..ab3240b9bb 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 5551ddaa30..5551ddaa30 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 986f692980..986f692980 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 e13438e6fd..e13438e6fd 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 0046cf6809..0046cf6809 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 604934785a..604934785a 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 1c6cd389c9..1c6cd389c9 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 9ac02ce99f..9ac02ce99f 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 3e45f4d03e..3e45f4d03e 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 ee623c8ccc..ee623c8ccc 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 338638a2d7..338638a2d7 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 42c273f060..42c273f060 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 c4259e7fd6..c4259e7fd6 100644
--- a/js/tests/units/util/sanitizer.spec.js
+++ b/js/tests/unit/util/sanitizer.spec.js