Skip to content

Instantly share code, notes, and snippets.

View fgm's full-sized avatar

Frédéric G. MARAND fgm

View GitHub Profile
@fgm
fgm / tinytest.api.js
Last active July 25, 2018 07:48 — forked from stbaer/tinytest.api
Meteor tinytest api
// From 1.1.03 packages/tinytest/tinytest.js
test._stringEqual(actual, expected, message) // Source comment: EXPERIMENTAL nicer (multiline) string display in runner
test.equal(actual, expected, message, not) // Source comment: "XXX eliminate 'message' and 'not' arguments"
/* Call this to fail the test with an exception. Use this to record exceptions
* that occur inside asynchronous callbacks in tests. It should only be used
* with asynchronous tests, and if you call this function, you should make
* sure that
* (1) the test doesn't call its callback (onComplete function);
* (2) the test function doesn't directly raise an exception.
*/