Skip to content

armgit / mocha

Public Imported from GitHub
0

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

Remove unneeded indentation from code blocks.

XhmikosR1fd425a78a48
diff --git a/index.html b/index.html
index e20d5651..6619c785 100644
--- a/index.html
+++ b/index.html
@@ -727,9 +727,8 @@ test('#length', function(){
<p>Be kind and don't make developers hunt around in your docs to figure
out how to run the tests, add a <code>make test</code> target to your <em>Makefile</em>:</p>
-<pre><code> test:
- ./node_modules/.bin/mocha \
- --reporter list
+<pre><code>test:
+ ./node_modules/.bin/mocha --reporter list
.PHONY: test
</code></pre>
@@ -744,7 +743,7 @@ test('#length', function(){
make writing tests quicker and more enjoyable.
To install the bundle run:</p>
-<pre><code> $ make tm
+<pre><code>$ make tm
</code></pre>
<h2 id="example-test-suites">Example test suites</h2>
@@ -764,17 +763,17 @@ test('#length', function(){
<p>Run the tests:</p>
-<pre><code> $ make test
+<pre><code>$ make test
</code></pre>
<p>Run all tests, including interfaces:</p>
-<pre><code> $ make test-all
+<pre><code>$ make test-all
</code></pre>
<p>Alter the reporter:</p>
-<pre><code> $ make test REPORTER=list
+<pre><code>$ make test REPORTER=list
</code></pre>
<h2 id="more-information">More information</h2>
diff --git a/index.md b/index.md
index 03b20ff4..dcc88784 100644
--- a/index.md
+++ b/index.md
@@ -675,11 +675,10 @@ Testing asynchronous code with Mocha could not be simpler! Simply invoke the cal
Be kind and don't make developers hunt around in your docs to figure
out how to run the tests, add a `make test` target to your _Makefile_:
- test:
- ./node_modules/.bin/mocha \
- --reporter list
+ test:
+ ./node_modules/.bin/mocha --reporter list
- .PHONY: test
+ .PHONY: test
<h2 id="editors">Editors</h2>
@@ -691,7 +690,7 @@ Testing asynchronous code with Mocha could not be simpler! Simply invoke the cal
make writing tests quicker and more enjoyable.
To install the bundle run:
- $ make tm
+ $ make tm
<h2 id="example-test-suites">Example test suites</h2>
@@ -708,15 +707,15 @@ Testing asynchronous code with Mocha could not be simpler! Simply invoke the cal
Run the tests:
- $ make test
+ $ make test
Run all tests, including interfaces:
- $ make test-all
+ $ make test-all
Alter the reporter:
- $ make test REPORTER=list
+ $ make test REPORTER=list
<h2 id="more-information">More information</h2>