[tor-commits] [snowflake/master] Fix tests for Params.getByteCount.

dcf at torproject.org dcf at torproject.org
Thu Jul 25 22:16:49 UTC 2019


commit e67a65994319d05fbfd22f00973587c0696ca81d
Author: David Fifield <david at bamsoftware.com>
Date:   Thu Jul 25 14:32:26 2019 -0600

    Fix tests for Params.getByteCount.
    
    They were relying on the Query.parse interface, which was removed
    separately.
    
    https://bugs.torproject.org/31126#comment:5
---
 proxy/spec/util.spec.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/proxy/spec/util.spec.js b/proxy/spec/util.spec.js
index f48365d..6eb5be4 100644
--- a/proxy/spec/util.spec.js
+++ b/proxy/spec/util.spec.js
@@ -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() {



More information about the tor-commits mailing list