bot18
Version:
A high-frequency cryptocurrency trading bot by Zenbot creator @carlos8f
14 lines (13 loc) • 443 B
JavaScript
describe('date', function () {
var date = new Date(Date.UTC(1969, 6, 21, 2, 56));
it('create a bucket with a date', function () {
var ts = date.getTime();
assert.equal(timebucket(date), 'ms' + ts);
});
it('create a bucket with a date and specific size', function () {
assert.equal(timebucket('8h', date), '8h-492');
});
it('backwards syntax', function () {
assert.equal(timebucket(date, '8h'), '8h-492');
});
});