tests.js 605 B

123456789101112131415161718192021222324252627282930
  1. "use strict";
  2. function equals(a, b) {
  3. return !!(JSON.stringify(a) === JSON.stringify(b));
  4. }
  5. Tinytest.add('ReactiveProperty - test', function(test) {
  6. //TODO
  7. });
  8. //Test API:
  9. //test.isFalse(v, msg)
  10. //test.isTrue(v, msg)
  11. //test.equalactual, expected, message, not
  12. //test.length(obj, len)
  13. //test.include(s, v)
  14. //test.isNaN(v, msg)
  15. //test.isUndefined(v, msg)
  16. //test.isNotNull
  17. //test.isNull
  18. //test.throws(func)
  19. //test.instanceOf(obj, klass)
  20. //test.notEqual(actual, expected, message)
  21. //test.runId()
  22. //test.exception(exception)
  23. //test.expect_fail()
  24. //test.ok(doc)
  25. //test.fail(doc)
  26. //test.equal(a, b, msg)