Skip to content

Commit 829b7d1

Browse files
committed
Downsize content images to maximum content width
1 parent 7f01ebd commit 829b7d1

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

docs/index.md

+20-20
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ $ mocha
635635

636636
Many reporters will display test duration, as well as flagging tests that are slow, as shown here with the "spec" reporter:
637637

638-
![test duration](images/reporter-spec-duration.png)
638+
![test duration](images/reporter-spec-duration.png?withoutEnlargement&resize=920,9999)
639639

640640
To tweak what's considered "slow", you can use the `slow()` method:
641641

@@ -702,7 +702,7 @@ Again, use `this.timeout(0)` to disable the timeout for a hook.
702702

703703
Mocha supports the `err.expected` and `err.actual` properties of any thrown `AssertionError`s from an assertion library. Mocha will attempt to display the difference between what was expected, and what the assertion actually saw. Here's an example of a "string" diff:
704704

705-
![string diffs](images/reporter-string-diffs.png)
705+
![string diffs](images/reporter-string-diffs.png?withoutEnlargement&resize=920,9999)
706706

707707
## Usage
708708

@@ -1013,69 +1013,69 @@ Mocha reporters adjust to the terminal window, and always disable ANSI-escape co
10131013

10141014
This is the default reporter. The "spec" reporter outputs a hierarchical view nested just as the test cases are.
10151015

1016-
![spec reporter](images/reporter-spec.png)
1017-
![spec reporter with failure](images/reporter-spec-fail.png)
1016+
![spec reporter](images/reporter-spec.png?withoutEnlargement&resize=920,9999)
1017+
![spec reporter with failure](images/reporter-spec-fail.png?withoutEnlargement&resize=920,9999)
10181018

10191019
### Dot Matrix
10201020

10211021
The dot matrix (or "dot") reporter is simply a series of characters which represent test cases. Failures highlight in red exclamation marks (`!`), pending tests with a blue comma (`,`), and slow tests as yellow. Good if you prefer minimal output.
10221022

1023-
![dot matrix reporter](images/reporter-dot.png)
1023+
![dot matrix reporter](images/reporter-dot.png?withoutEnlargement&resize=920,9999)
10241024

10251025
### Nyan
10261026

10271027
The "nyan" reporter is exactly what you might expect:
10281028

1029-
![js nyan cat reporter](images/reporter-nyan.png)
1029+
![js nyan cat reporter](images/reporter-nyan.png?withoutEnlargement&resize=920,9999)
10301030

10311031
### TAP
10321032

10331033
The TAP reporter emits lines for a [Test-Anything-Protocol](http://en.wikipedia.org/wiki/Test_Anything_Protocol) consumer.
10341034

1035-
![test anything protocol](images/reporter-tap.png)
1035+
![test anything protocol](images/reporter-tap.png?withoutEnlargement&resize=920,9999)
10361036

10371037
### Landing Strip
10381038

10391039
The Landing Strip (`landing`) reporter is a gimmicky test reporter simulating a plane landing :) unicode ftw
10401040

1041-
![landing strip plane reporter](images/reporter-landing.png)
1042-
![landing strip with failure](images/reporter-landing-fail.png)
1041+
![landing strip plane reporter](images/reporter-landing.png?withoutEnlargement&resize=920,9999)
1042+
![landing strip with failure](images/reporter-landing-fail.png?withoutEnlargement&resize=920,9999)
10431043

10441044
### List
10451045

10461046
The "list" reporter outputs a simple specifications list as test cases pass or fail, outputting the failure details at the bottom of the output.
10471047

1048-
![list reporter](images/reporter-list.png)
1048+
![list reporter](images/reporter-list.png?withoutEnlargement&resize=920,9999)
10491049

10501050
### Progress
10511051

10521052
The "progress" reporter implements a simple progress-bar:
10531053

1054-
![progress bar](images/reporter-progress.png)
1054+
![progress bar](images/reporter-progress.png?withoutEnlargement&resize=920,9999)
10551055

10561056
### JSON
10571057

10581058
The "JSON" reporter outputs a single large JSON object when the tests have completed (failures or not).
10591059

1060-
![json reporter](images/reporter-json.png)
1060+
![json reporter](images/reporter-json.png?withoutEnlargement&resize=920,9999)
10611061

10621062
### JSON Stream
10631063

10641064
The "JSON stream" reporter outputs newline-delimited JSON "events" as they occur, beginning with a "start" event, followed by test passes or failures, and then the final "end" event.
10651065

1066-
![json stream reporter](images/reporter-json-stream.png)
1066+
![json stream reporter](images/reporter-json-stream.png?withoutEnlargement&resize=920,9999)
10671067

10681068
### Min
10691069

10701070
The "min" reporter displays the summary only, while still outputting errors on failure. This reporter works great with `--watch` as it clears the terminal in order to keep your test summary at the top.
10711071

1072-
![min reporter](images/reporter-min.png)
1072+
![min reporter](images/reporter-min.png?withoutEnlargement&resize=920,9999)
10731073

10741074
### Doc
10751075

10761076
The "doc" reporter outputs a hierarchical HTML body representation of your tests. Wrap it with a header, footer, and some styling, then you have some fantastic documentation!
10771077

1078-
![doc reporter](images/reporter-doc.png)
1078+
![doc reporter](images/reporter-doc.png?withoutEnlargement&resize=920,9999)
10791079

10801080
For example, suppose you have the following JavaScript:
10811081

@@ -1127,7 +1127,7 @@ The "markdown" reporter generates a markdown TOC and body for your test suite. T
11271127

11281128
The "HTML" reporter is currently the only browser reporter supported by Mocha, and it looks like this:
11291129

1130-
![HTML test reporter](images/reporter-html.png)
1130+
![HTML test reporter](images/reporter-html.png?withoutEnlargement&resize=920,9999)
11311131

11321132
### Undocumented Reporters
11331133

@@ -1244,20 +1244,20 @@ $ make tm
12441244

12451245
[JetBrains](http://jetbrains.com) provides a [NodeJS plugin](http://www.jetbrains.com/idea/features/nodejs.html) for its suite of IDEs (IntelliJ IDEA, WebStorm, etc.), which contains a Mocha test runner, among other things.
12461246

1247-
![JetBrains Mocha Runner Plugin in Action](images/jetbrains-plugin.png)
1247+
![JetBrains Mocha Runner Plugin in Action](images/jetbrains-plugin.png?withoutEnlargement&resize=920,9999)
12481248

12491249
The plugin is titled **NodeJS**, and can be installed via **Preferences** > **Plugins**, assuming your license allows it.
12501250

12511251
### Wallaby.js
12521252

12531253
[Wallaby.js](http://wallabyjs.com) is a continuous testing tool that enables real-time code coverage for Mocha with any assertion library in JetBrains IDEs (IntelliJ IDEA, WebStorm, etc.) and Visual Studio for both browser and node.js projects.
12541254

1255-
![Wallaby.js in Action](images/wallaby.png)
1255+
![Wallaby.js in Action](images/wallaby.png?withoutEnlargement&resize=920,9999)
12561256

12571257
### Emacs
12581258
[Emacs](https://www.gnu.org/software/emacs/) support for running Mocha tests is available via a 3rd party package [mocha.el](https://github.com/scottaj/mocha.el). The package is available on MELPA, and can be installed via `M-x package-install mocha`.
12591259

1260-
![Emacs Mocha Runner in Action](images/emacs.png)
1260+
![Emacs Mocha Runner in Action](images/emacs.png?withoutEnlargement&resize=920,9999)
12611261

12621262
### Mocha Sidebar (VS Code)
12631263

@@ -1270,7 +1270,7 @@ The plugin is titled **NodeJS**, and can be installed via **Preferences** > **Pl
12701270
* auto run tests on file save
12711271
* see tests results directly in the code editor
12721272

1273-
![mocha side bar in Action](images/mocha_side_bar.png)
1273+
![mocha side bar in Action](images/mocha_side_bar.png?withoutEnlargement&resize=920,9999)
12741274

12751275
## Examples
12761276

0 commit comments

Comments
 (0)