Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Johansen committed Dec 5, 2011
1 parent 2746657 commit 2686c3b
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docs/overview.html.erb
Expand Up @@ -46,6 +46,26 @@ buster test --config anywhere/buster.js

<p>Note that you are free to name your test cases whatever you want. They don't have to start with <code>"test ..."</code> or <code>"should ..."</code>.</p>

<h2>Examples</h2>

<p>
Buster.JS has pluggable "front-ends" to specifying
examples/tests/whatever. Here's the other bundled way of doing it:
</p>

<pre><code>// Expose describe and it functions globally
buster.spec.expose();

describe("My thing", function () {
it("has the foo and bar", function () {
expect("foo").toEqual("bar");
});

it("states the obvious", function () {
expect(true).toBeSameAs(true);;
});
});</code></pre>

<h2>Browser testing</h2>

<p>Buster.JS can automate browsers, JsTestDriver style. First, start the server.</p>
Expand Down

0 comments on commit 2686c3b

Please sign in to comment.