Files
meteor/packages/tinytest/README.md
2015-07-22 10:14:21 -07:00

26 lines
666 B
Markdown

This is an internal Meteor package.
API:
test.ok(doc)
test.expect_fail()
test.fail(doc)
test.exception(exception)
test.runId()
test.equal(actual, expected, message, not)
test.notEqual(actual, expected, message)
test.instanceOf(obj, klass, message)
test.notInstanceOf(obj, klass, message)
test.matches(actual, regexp, message)
test.notMatches(actual, regexp, message)
test.throws(func)
test.isTrue(v, msg)
test.isFalse(v, msg)
test.isNull(v. msg)
test.isNotNull(v, msg)
test.isUndefined(v, msg)
test.isNotUndefined(v, msg)
test.isNaN(v, msg)
test.isNotNaN(v, msg)
test.include(s, v, message, not)
test.notInclude(s, v, message)
test.length(obj, expected_length, msg)