mirror of
https://github.com/tenrok/axios.git
synced 2026-06-05 16:42:32 +03:00
Fixing isArrayLike to allow length as a param. Added test
This commit is contained in:
@@ -44,5 +44,13 @@ describe('helpers::buildUrl', function () {
|
||||
bar: 'baz'
|
||||
})).toEqual('/foo?foo=bar&bar=baz');
|
||||
});
|
||||
|
||||
it('should support "length" parameter', function () {
|
||||
expect(buildUrl('/foo', {
|
||||
query: 'bar',
|
||||
start: 0,
|
||||
length: 5
|
||||
})).toEqual('/foo?query=bar&start=0&length=5');
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user