Skip to content

armgit / mocha

Public Imported from GitHub
0

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

added gitter badge to website

David da Silvaec7b2fe1b210
diff --git a/index.html b/index.html
index d806131a..8bab1270 100644
--- a/index.html
+++ b/index.html
@@ -24,6 +24,8 @@
<p id="tag"><em>simple</em>, <em>flexible</em>, <em>fun</em></p>
<p>Mocha is a feature-rich JavaScript test framework running on <a href="http://nodejs.org">node.js</a> and the browser, making asynchronous testing simple and fun. Mocha tests run serially, allowing for flexible and accurate reporting, while mapping uncaught exceptions to the correct test cases. Hosted on <a href="https://github.com/mochajs/mocha">GitHub</a>.</p>
+<p><a href="https://gitter.im/mochajs/mocha" alt="Gitter" class="badge"><img src="https://badges.gitter.im/Join%20Chat.svg" /></a></p>
+
<h2 id="features">Features</h2>
<ul>
@@ -754,7 +756,7 @@ testCase('Array', function(){
<p>Mocha options can be set via <code>mocha.setup()</code>. Examples:</p>
-<pre><code>// Use "tdd" interface. This is a shortcut to setting the interface;
+<pre><code>// Use "tdd" interface. This is a shortcut to setting the interface;
// any other options must be passed via an object.
mocha.setup('tdd');
@@ -775,7 +777,7 @@ mocha.setup({
<p>The following option(s) <em>only</em> function in a browser context:</p>
-<p><code>noHighlighting</code> : If set to <code>true</code>, do not attempt to use syntax highlighting on output test code. </p>
+<p><code>noHighlighting</code> : If set to <code>true</code>, do not attempt to use syntax highlighting on output test code.</p>
<h2 id="mocha.opts">mocha.opts</h2>
@@ -901,4 +903,4 @@ mocha.setup({
<span>© 2011 TJ Holowaychuk. All rights reserved.</span>
</footer>
</body>
-</html>
+</html>
\ No newline at end of file
diff --git a/index.md b/index.md
index a08ea296..ead7bf52 100644
--- a/index.md
+++ b/index.md
@@ -1,5 +1,7 @@
Mocha is a feature-rich JavaScript test framework running on [node.js](http://nodejs.org) and the browser, making asynchronous testing simple and fun. Mocha tests run serially, allowing for flexible and accurate reporting, while mapping uncaught exceptions to the correct test cases. Hosted on [GitHub](https://github.com/mochajs/mocha).
+<a href="https://gitter.im/mochajs/mocha" alt="Gitter" class="badge"><img src="https://badges.gitter.im/Join%20Chat.svg" /></a>
+
<h2 id="features">Features</h2>
- browser support
@@ -704,28 +706,28 @@ Testing asynchronous code with Mocha could not be simpler! Simply invoke the cal
<h3 id="browser-setup">Mocha Setup in the Browser</h3>
Mocha options can be set via `mocha.setup()`. Examples:
-
- // Use "tdd" interface. This is a shortcut to setting the interface;
+
+ // Use "tdd" interface. This is a shortcut to setting the interface;
// any other options must be passed via an object.
mocha.setup('tdd');
-
+
// This is equivalent to the above.
mocha.setup({
ui: 'tdd'
});
-
+
// Use "tdd" interface, ignore leaks, and force all tests to be asynchronous
mocha.setup({
ui: 'tdd',
ignoreLeaks: true,
asyncOnly: true
- });
+ });
<h3 id="browser-specific-options">Browser-specific option(s)</h3>
The following option(s) *only* function in a browser context:
-
- `noHighlighting` : If set to `true`, do not attempt to use syntax highlighting on output test code.
+
+ `noHighlighting` : If set to `true`, do not attempt to use syntax highlighting on output test code.
<h2 id="mocha.opts">mocha.opts</h2>
diff --git a/style.css b/style.css
index ea6ed144..982fa08f 100644
--- a/style.css
+++ b/style.css
@@ -157,6 +157,24 @@ img {
max-width: 100%;
}
+.badge {
+ margin-right: 8px;
+ display: inline-block;
+}
+
+.badge > img {
+ margin: 0px;
+ padding: 0px;
+ -webkit-border-radius: 0px;
+ -moz-border-radius: 0px;
+ -o-border-radius: 0px;
+ border-radius: 0px;
+ -webkit-box-shadow: none;
+ -moz-box-shadow: none;
+ box-shadow: none;
+ display: block;
+}
+
footer {
background-color: #eee;
width: 100%;