[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [snowflake/master] Fix tests for Params.getByteCount.
commit e67a65994319d05fbfd22f00973587c0696ca81d
Author: David Fifield <david@xxxxxxxxxxxxxxx>
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() {
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits