Fork me on GitHub

Adds dependency injection to QUnit module config and tests


QUnit.module('Example', {
  a: 1,
  b: 42
});
QUnit.test('a and b', function (a, b) {
  QUnit.equal(a, 1, 'a has been injected');
  QUnit.equal(b, 42, 'b has been injected');
});