client-tests.js 742 B

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