UNPKG

bot18

Version:

A high-frequency cryptocurrency trading bot by Zenbot creator @carlos8f

16 lines (14 loc) 493 B
describe('links', function(){ describe('.links(obj)', function(){ it('should set Link header field', function(){ var res = response(); res.links({ next: 'http://api.example.com/users?page=2', last: 'http://api.example.com/users?page=5' }); var link = res.get('link'); assert.equal(link, '<http://api.example.com/users?page=2>; rel="next", ' + '<http://api.example.com/users?page=5>; rel="last"'); }); }); });