Skip to content

Instantly share code, notes, and snippets.

@stbaer
Last active November 15, 2016 19:10
Show Gist options
  • Star 19 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save stbaer/8168063 to your computer and use it in GitHub Desktop.
Save stbaer/8168063 to your computer and use it in GitHub Desktop.
Meteor tinytest api
test.isFalse(v, msg)
test.isTrue(v, msg)
test.equal(actual, expected, message, not)
test.length(obj, len)
test.include(s, v)
test.isNaN(v, msg)
test.isUndefined(v, msg)
test.isNotNull
test.isNull
test.throws(func)
test.instanceOf(obj, klass)
test.notEqual(actual, expected, message)
test.runId()
test.exception(exception)
test.expect_fail()
test.ok(doc)
test.fail(doc)
@maxenceC
Copy link

maxenceC commented Dec 3, 2015

It lacks this one :

test.isNotUndefined(actual, msg)

(I'm new to Gist, but I think there is now way to create PR, right ?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment