client-tests.js 705 B

123456789101112131415161718192021222324252627
  1. function equals(a, b) {
  2. return !!(EJSON.stringify(a) === EJSON.stringify(b));
  3. }
  4. Tinytest.add('cfs-upload-http - client - test environment', function(test) {
  5. test.isTrue(typeof FS.Collection !== 'undefined', 'test environment not initialized FS.Collection');
  6. });
  7. //Test API:
  8. //test.isFalse(v, msg)
  9. //test.isTrue(v, msg)
  10. //test.equalactual, expected, message, not
  11. //test.length(obj, len)
  12. //test.include(s, v)
  13. //test.isNaN(v, msg)
  14. //test.isUndefined(v, msg)
  15. //test.isNotNull
  16. //test.isNull
  17. //test.throws(func)
  18. //test.instanceOf(obj, klass)
  19. //test.notEqual(actual, expected, message)
  20. //test.runId()
  21. //test.exception(exception)
  22. //test.expect_fail()
  23. //test.ok(doc)
  24. //test.fail(doc)
  25. //test.equal(a, b, msg)