mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 05:11:19 -04:00
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:
parent
f795fb5a33
commit
e67a659943
1 changed files with 1 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue