testRpt.js 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /**
  2. * Created by Tony on 2017/3/17.
  3. */
  4. var test = require('tape');
  5. var cmn_ctrl = require('../../../modules/reports/models/cfg_control');
  6. var cmn_font = require('../../../modules/reports/models/cfg_font');
  7. var cmn_style = require('../../../modules/reports/models/cfg_style');
  8. test('test get report pages function: ', function (t) {
  9. /*/
  10. t.plan(1);
  11. t.equal(2 + 3, 5);
  12. /*/
  13. cmn_ctrl.getAll(null, function(err, ctrls){
  14. t.notEqual(ctrls, null);
  15. t.end();
  16. return true;
  17. });
  18. //*/
  19. });
  20. test('test get report pages function: ', function (t) {
  21. /*/
  22. t.plan(1);
  23. t.equal(7 * 8 + 9, 65);
  24. /*/
  25. cmn_font.getAll(null, function(err, fonts){
  26. t.notEqual(fonts, null);
  27. t.end();
  28. return true;
  29. });
  30. //*/
  31. });
  32. test('test get report pages function: ', function (t) {
  33. /*/
  34. t.plan(1);
  35. t.equal(1+2, 65);
  36. /*/
  37. cmn_style.getAll(null, function(err, styles){
  38. t.notEqual(styles, null);
  39. t.end();
  40. return true;
  41. });
  42. //*/
  43. });