Beispiel #1
0
 expect(function() {
     const testblockrange = {
         'blockcounthigh': 1,
         'blockcountlow': 10
     };
     void blocktool.blockRangeToBlockCount(
         testblockrange).to.throw(TypeError);
 });
Beispiel #2
0
 test('blockRangeToBlockCount (magic)', function() {
     const blockcountlow = 363398;
     const blockcounthigh = 363400; //368596 Wed Aug  5 20:16:32 PDT 2015
     return blocktool.blockRangeToBlockCount({
         'blockcountlow': blockcountlow,
         'blockcounthigh': blockcounthigh
     }).then(function(blockCountArr) {
         expect(blockCountArr).to.not.equal(
             undefined);
     });
 });
Beispiel #3
0
 expect(function() {
     const blockcountlow = 363398; //368596 Wed Aug  5 20:16:32 PDT 2015
     return blocktool.blockRangeToBlockCount({
         'blockcountlow': blockcountlow
     }).to.throw(TypeError);
 });
Beispiel #4
0
 expect(function() {
     const blockcounthigh = 363400; //368596 Wed Aug  5 20:16:32 PDT 2015
     void blocktool.blockRangeToBlockCount({
         'blockcounthigh': blockcounthigh
     }).to.throw(TypeError);
 });