Skip to content

armgit / mocha

Public Imported from GitHub
0

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

fixes

Christopher Hiller21df9144323a
diff --git a/.gitignore b/.gitignore
index de211d70..dfb62d2b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
_site
node_modules
npm-debug.log*
+Gemfile.lock
diff --git a/Gemfile b/Gemfile
index 053c27dc..37f5eaa4 100644
--- a/Gemfile
+++ b/Gemfile
@@ -1,2 +1,2 @@
source 'https://rubygems.org'
-gem 'github-pages'
+gem 'github-pages', group: :jekyll_plugins
diff --git a/Gemfile.lock b/Gemfile.lock
deleted file mode 100644
index 68ac47b0..00000000
--- a/Gemfile.lock
+++ /dev/null
@@ -1,131 +0,0 @@
-GEM
- remote: https://rubygems.org/
- specs:
- RedCloth (4.2.9)
- activesupport (4.2.1)
- i18n (~> 0.7)
- json (~> 1.7, >= 1.7.7)
- minitest (~> 5.1)
- thread_safe (~> 0.3, >= 0.3.4)
- tzinfo (~> 1.1)
- blankslate (2.1.2.4)
- celluloid (0.16.0)
- timers (~> 4.0.0)
- classifier-reborn (2.0.3)
- fast-stemmer (~> 1.0)
- coffee-script (2.4.1)
- coffee-script-source
- execjs
- coffee-script-source (1.9.1.1)
- colorator (0.1)
- execjs (2.5.2)
- fast-stemmer (1.0.2)
- ffi (1.9.8)
- gemoji (2.1.0)
- github-pages (37)
- RedCloth (= 4.2.9)
- github-pages-health-check (~> 0.2)
- jekyll (= 2.4.0)
- jekyll-coffeescript (= 1.0.1)
- jekyll-feed (= 0.3.0)
- jekyll-mentions (= 0.2.1)
- jekyll-redirect-from (= 0.8.0)
- jekyll-sass-converter (= 1.2.0)
- jekyll-sitemap (= 0.8.1)
- jemoji (= 0.4.0)
- kramdown (= 1.5.0)
- liquid (= 2.6.2)
- maruku (= 0.7.0)
- mercenary (~> 0.3)
- pygments.rb (= 0.6.1)
- rdiscount (= 2.1.7)
- redcarpet (= 3.1.2)
- terminal-table (~> 1.4)
- github-pages-health-check (0.2.2)
- net-dns (~> 0.6)
- public_suffix (~> 1.4)
- hitimes (1.2.2)
- html-pipeline (1.9.0)
- activesupport (>= 2)
- nokogiri (~> 1.4)
- i18n (0.7.0)
- jekyll (2.4.0)
- classifier-reborn (~> 2.0)
- colorator (~> 0.1)
- jekyll-coffeescript (~> 1.0)
- jekyll-gist (~> 1.0)
- jekyll-paginate (~> 1.0)
- jekyll-sass-converter (~> 1.0)
- jekyll-watch (~> 1.1)
- kramdown (~> 1.3)
- liquid (~> 2.6.1)
- mercenary (~> 0.3.3)
- pygments.rb (~> 0.6.0)
- redcarpet (~> 3.1)
- safe_yaml (~> 1.0)
- toml (~> 0.1.0)
- jekyll-coffeescript (1.0.1)
- coffee-script (~> 2.2)
- jekyll-feed (0.3.0)
- jekyll-gist (1.2.1)
- jekyll-mentions (0.2.1)
- html-pipeline (~> 1.9.0)
- jekyll (~> 2.0)
- jekyll-paginate (1.1.0)
- jekyll-redirect-from (0.8.0)
- jekyll (>= 2.0)
- jekyll-sass-converter (1.2.0)
- sass (~> 3.2)
- jekyll-sitemap (0.8.1)
- jekyll-watch (1.2.1)
- listen (~> 2.7)
- jemoji (0.4.0)
- gemoji (~> 2.0)
- html-pipeline (~> 1.9)
- jekyll (~> 2.0)
- json (1.8.2)
- kramdown (1.5.0)
- liquid (2.6.2)
- listen (2.10.0)
- celluloid (~> 0.16.0)
- rb-fsevent (>= 0.9.3)
- rb-inotify (>= 0.9)
- maruku (0.7.0)
- mercenary (0.3.5)
- mini_portile (0.6.2)
- minitest (5.6.0)
- net-dns (0.8.0)
- nokogiri (1.6.6.2)
- mini_portile (~> 0.6.0)
- parslet (1.5.0)
- blankslate (~> 2.0)
- posix-spawn (0.3.11)
- public_suffix (1.5.1)
- pygments.rb (0.6.1)
- posix-spawn (~> 0.3.6)
- yajl-ruby (~> 1.2.0)
- rb-fsevent (0.9.4)
- rb-inotify (0.9.5)
- ffi (>= 0.5.0)
- rdiscount (2.1.7)
- redcarpet (3.1.2)
- safe_yaml (1.0.4)
- sass (3.4.13)
- terminal-table (1.4.5)
- thread_safe (0.3.5)
- timers (4.0.1)
- hitimes
- toml (0.1.2)
- parslet (~> 1.5.0)
- tzinfo (1.2.2)
- thread_safe (~> 0.1)
- yajl-ruby (1.2.1)
-
-PLATFORMS
- ruby
-
-DEPENDENCIES
- github-pages
-
-BUNDLED WITH
- 1.10.5
diff --git a/_config.yml b/_config.yml
index ed1df4b6..3230590e 100644
--- a/_config.yml
+++ b/_config.yml
@@ -1,12 +1,11 @@
-url: http://mochajs.org
-markdown: kramdown
-redcarpet:
- extensions: ["with_toc_data"]
-highlighter: rouge
+url: https://mochajs.org
exclude:
- node_modules
- README.md
- Gemfile*
- package.json
- CNAME
+ - Makefile
+ - npm-debug.log*
+
diff --git a/css/style.css b/css/style.css
index 10b8553c..e2ae2c52 100644
--- a/css/style.css
+++ b/css/style.css
@@ -178,12 +178,12 @@ img {
}
.badge > img {
- margin: 0px;
- padding: 0px;
- -webkit-border-radius: 0px;
- -moz-border-radius: 0px;
- -o-border-radius: 0px;
- border-radius: 0px;
+ margin: 0;
+ padding: 0;
+ -webkit-border-radius: 0;
+ -moz-border-radius: 0;
+ -o-border-radius: 0;
+ border-radius: 0;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
diff --git a/index.md b/index.md
index 14088768..89080ee4 100644
--- a/index.md
+++ b/index.md
@@ -61,7 +61,7 @@ Mocha is a feature-rich JavaScript test framework running on [Node.js](http://no
- [Interfaces](#interfaces)
- [Reporters](#reporters)
- [Running Mocha in the Browser](#running-mocha-in-the-browser)
-- [`mocha.opts`](#mocha-opts)
+- [`mocha.opts`](#mochaopts)
- [The `test/` Directory](#the-test-directory)
- [Editor Plugins](#editor-plugins)
- [Examples](#examples)
@@ -188,7 +188,7 @@ describe('#find()', function() {
(The latter example uses [Chai as Promised](https://www.npmjs.com/package/chai-as-promised) for fluent promise assertions.)
-## Arrow functions
+## Arrow Functions
Passing [arrow functions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions) to Mocha is discouraged. Their lexical binding of the `this` value makes them unable to access the Mocha context, and statements like `this.timeout(1000);` will not work inside an arrow function.
@@ -663,7 +663,7 @@ suite('Array', function() {
### Exports
-The **Exports** interface is much like Mocha's predecessor [expresso](https://github.com/visionmedia/expresso). The keys `before`, `after`, `beforeEach`, and `afterEach` are special-cased, object values are suites, and function values are test-cases:
+The **Exports** interface is much like Mocha's predecessor [expresso](https://github.com/tj/expresso). The keys `before`, `after`, `beforeEach`, and `afterEach` are special-cased, object values are suites, and function values are test-cases:
```js
module.exports = {
diff --git a/package.json b/package.json
index 051963d6..f6aa5331 100644
--- a/package.json
+++ b/package.json
@@ -3,10 +3,10 @@
"version": "1.0.0",
"description": "Mocha's gh-pages branch",
"private": true,
- "maintainers": [
- "travisjeffery <[email protected]>",
- "jbnicolai <[email protected]>",
- "boneskull <[email protected]>"
+ "authors": [
+ "David da Silva Contín <[email protected]>",
+ "Christopher Hiller <[email protected]>",
+ "Travis Jeffery <[email protected]>"
],
"scripts": {
"prepublish": "gem install bundler && bundle install",
@@ -14,13 +14,13 @@
},
"repository": {
"type": "git",
- "url": "https://github.com/mochajs/mocha.git#gh-pages"
+ "url": "https://github.com/mochajs/mochajs.github.io.git"
},
"license": "MIT",
"bugs": {
- "url": "https://github.com/mochajs/mocha/issues"
+ "url": "https://github.com/mochajs/mochajs.github.io/issues"
},
- "homepage": "http://mochajs.org",
+ "homepage": "https://mochajs.org",
"devDependencies": {
"markdown-toc-index": "^0.2.0"
}