/** * Created by Tony on 2017/3/17. */ var test = require('tape'); var cmn_ctrl = require('../../../modules/reports/models/cfg_control'); var cmn_font = require('../../../modules/reports/models/cfg_font'); var cmn_style = require('../../../modules/reports/models/cfg_style'); var mongoose = require('mongoose'); test('test get report pages function: ', function (t) { /*/ t.plan(1); t.equal(2 + 3, 5); /*/ cmn_ctrl.getAll(null, function(err, ctrls){ t.notEqual(ctrls, null); t.end(); return true; }); //*/ }); test('test get report pages function: ', function (t) { /*/ t.plan(1); t.equal(7 * 8 + 9, 65); /*/ cmn_font.getAll(null, function(err, fonts){ t.notEqual(fonts, null); t.end(); return true; }); //*/ }); test('test get report pages function: ', function (t) { /*/ t.plan(1); t.equal(1+2, 65); /*/ cmn_style.getAll(null, function(err, styles){ t.notEqual(styles, null); t.end(); return true; }); //*/ }); test('finish', function (t) { mongoose.disconnect(); t.pass('closing db connection'); t.end(); });