Skip to content
Snippets Groups Projects
Commit e67a6599 authored by David Fifield's avatar David Fifield
Browse files

Fix tests for Params.getByteCount.

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

https://bugs.torproject.org/31126#comment:5
parent f795fb5a
No related branches found
No related tags found
No related merge requests found
......@@ -238,7 +238,7 @@ describe('Params', function() {
var DEFAULT = 77;
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() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment