0.4.1 • Published 7 years ago

tstjs v0.4.1

Weekly downloads
35
License
SEE LICENSE IN LI...
Repository
github
Last release
7 years ago

tst.js

A testing microframework for javascript.

Authors:

Michael Calvey

TODO:

This microframework is still in very early stages. Therefore, many features necessary for a fully functioning test suite are not yet implemented. Here is a list of the features that are up next in the pipeline:

  • Export the methods(!!!)
  • Add more matchers.

HOW TO USE:

Unfortunately, at the moment the package is not yet importable as a module. This is coming soon! For the time being, the code in src/main.js needs to be copied into the file to be tested. Here is a code snippet that sets up a unit test:

var name = 'john';

describe("#name", [
  (function () {
  it("returns john", function () {
    return assert(name).toBe('john');
  });
}),
  (function () {
  it("returns multiple john", function () {
    return assert(name + name + name).toNotBe('john');
  });
})]);

This readme is being updated! Please check back soon- there will be lots more here!

License:

SEE LICENSE

NB while running, tests are stored in a hash of arrays

0.4.1

7 years ago

0.4.0

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.1

8 years ago