Permalink
Browse files

add test

  • Loading branch information...
1 parent 278d69d commit b09d4b779cdae060b9c271434cddc98d4330b36d @Devon-Olivier committed Jan 4, 2013
Showing with 13 additions and 0 deletions.
  1. +13 −0 tests/nlcb-lotto.js
View
13 tests/nlcb-lotto.js
@@ -10,3 +10,16 @@ lottoplusNlcbDriver.getDrawNumberRange({start:1, end:2}, function drawNumberRang
}
console.log(draws);
});
+
+var moment = DRIVERS.moment;
+var range = {
+ start: moment('2012 12 1', 'YYYY MM DD'),
+ end: moment('2013 1 1', 'YYYY MM DD')
+};
+lottoplusNlcbDriver.getDrawDateRange(range, function drawDateRangeCallback(error, draws){
+ if(error !== null){
+ console.log(error);
+ return;
+ }
+ console.log(draws);
+});

0 comments on commit b09d4b7

Please sign in to comment.