aboutsummaryrefslogtreecommitdiff
path: root/js/tests/index.html
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2019-01-15 18:01:40 +0200
committerGitHub <[email protected]>2019-01-15 18:01:40 +0200
commit3aeda9942dc1743e982b2b6bfeee2e1cfbca2ec5 (patch)
treeb1c7362058235057fafee81dde18729fc94d177e /js/tests/index.html
parent0828b885637f572fe13e060ccb6d34cdc14122c0 (diff)
downloadbootstrap-3aeda9942dc1743e982b2b6bfeee2e1cfbca2ec5.tar.xz
bootstrap-3aeda9942dc1743e982b2b6bfeee2e1cfbca2ec5.zip
tests: use jQuery from node_modules. (#28059)
Diffstat (limited to 'js/tests/index.html')
-rw-r--r--js/tests/index.html14
1 files changed, 1 insertions, 13 deletions
diff --git a/js/tests/index.html b/js/tests/index.html
index 37c1c2b27..99acd4ad4 100644
--- a/js/tests/index.html
+++ b/js/tests/index.html
@@ -6,19 +6,7 @@
<title>Bootstrap Plugin Test Suite</title>
<!-- jQuery -->
- <script>
- (function () {
- var path = '../../site/docs/4.2/assets/js/vendor/jquery-slim.min.js'
- // get jquery param from the query string.
- var jQueryVersion = location.search.match(/[?&]jquery=(.*?)(?=&|$)/)
-
- // If a version was specified, use that version from jQuery CDN
- if (jQueryVersion) {
- path = 'https://code.jquery.com/jquery-' + jQueryVersion[1] + '.min.js'
- }
- document.write('<script src="' + path + '"><\/script>')
- }())
- </script>
+ <script src="../../node_modules/jquery/dist/jquery.slim.min.js"></script>
<script src="../../node_modules/popper.js/dist/umd/popper.min.js"></script>
<!-- QUnit -->