A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/gerad/nodeunit-dsl below:

gerad/nodeunit-dsl: A pretty dsl on top of nodeunit.

A pretty dsl on top of nodeunit.

> git clone http://github.com/gerad/nodeunit-dsl.git
> npm link nodeunit-dsl

Create a test file.

// test/example.js

var dsl = require('nodeunit-dsl'),
  test = dsl.test, run = dsl.run,
  before = dsl.before, after = dsl.after;

if (module.id === '.') run(__filename);

before(function() {
  // do something before each test
});

test("it worked", function(t) {
  t.expect(1);
  t.ok('it worked');
  t.done();
});

after(function() {
  // do something after each test
});

Then run it.

Alternatively, you can run all tests with the provided command line utility.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4