Fix tests for Params.getByteCount.

They were relying on the Query.parse interface, which was removed
separately.

https://bugs.torproject.org/31126#comment:5
This commit is contained in:
David Fifield 2019-07-25 14:32:26 -06:00
parent f795fb5a33
commit e67a659943

View file

@ -238,7 +238,7 @@ describe('Params', function() {
var DEFAULT = 77; var DEFAULT = 77;
var getByteCount = function(query) { var getByteCount = function(query) {
return Params.getByteCount(Query.parse(query), 'param', DEFAULT); return Params.getByteCount(new URLSearchParams(query), 'param', DEFAULT);
}; };
it('supports default values', function() { it('supports default values', function() {