Skip to content

Commit

Permalink
update test demo
Browse files Browse the repository at this point in the history
  • Loading branch information
caihuiji committed Sep 24, 2015
1 parent 6a47bc7 commit 551be9c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test-statistics-services.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@

var mysql = require('mysql'),
StatisticsService = require('../service/StatisticsService'),
orm = require('orm');

GLOBAL.pjconfig = require('../project.json');
//GLOBAL.DEBUG = true;
var mysql = "mysql://badjs:[email protected]:3306/badjs";
//var mysql = "mysql://root:root@localhost:3306/badjs";
Expand All @@ -23,7 +25,7 @@ orm.connect( mysql, function(err , db) {
var aa = new StatisticsService();


var startDate = new Date('2014-12-09 00:00:00');
var startDate = new Date('2015-09-23 00:00:00');
var nowDate = new Date;

var fetch = function (id , startDate){
Expand All @@ -38,11 +40,9 @@ orm.connect( mysql, function(err , db) {
})
}

fetch(991 , startDate);
fetch(24 , startDate);

});





0 comments on commit 551be9c

Please sign in to comment.