Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

Update an example for browsers in docs (#3338)

JeongHoon Byun (aka Outsider)d401ee198bd5
diff --git a/docs/README.md b/docs/README.md
index 30ef573d..0a069dff 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -15,8 +15,8 @@
1. Run `npm install` from working copy root to get Node.js deps.
1. Run `bundle install` to install Jekyll and its dependencies. This may or may not require elevated privileges, depending on your system.
-1. To serve the site and rebuild as changes are made, execute `npm run docs.watch`.
-1. To rebuild the site *once*, execute `npm start docs.build`.
+1. To serve the site and rebuild as changes are made, execute `npm start docs.watch`.
+1. To rebuild the site *once*, execute `npm start docs`.
### Notes
diff --git a/docs/index.md b/docs/index.md
index 1e0c372c..4ba7c501 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -1191,14 +1191,13 @@ A typical setup might look something like the following, where we call `mocha.se
<head>
<meta charset="utf-8">
<title>Mocha Tests</title>
- <link href="https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.css" rel="stylesheet" />
+ <link href="https://unpkg.com/[email protected]/mocha.css" rel="stylesheet" />
</head>
<body>
<div id="mocha"></div>
- <script src="https://cdn.rawgit.com/jquery/jquery/2.1.4/dist/jquery.min.js"></script>
- <script src="https://cdn.rawgit.com/Automattic/expect.js/0.3.1/index.js"></script>
- <script src="https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js"></script>
+ <script src="https://unpkg.com/chai/chai.js"></script>
+ <script src="https://unpkg.com/[email protected]/mocha.js"></script>
<script>mocha.setup('bdd')</script>
<script src="test.array.js"></script>
@@ -1206,7 +1205,6 @@ A typical setup might look something like the following, where we call `mocha.se
<script src="test.xhr.js"></script>
<script>
mocha.checkLeaks();
- mocha.globals(['jQuery']);
mocha.run();
</script>
</body>