diff options
| author | Andrew Zhao <azhao12345@users.noreply.github.com> | 2021-02-25 21:50:40 -0500 |
|---|---|---|
| committer | Andrew Zhao <azhao12345@users.noreply.github.com> | 2021-02-25 22:19:22 -0500 |
| commit | 2600695927311062fc9e6abd980bb33f73fe75a6 (patch) | |
| tree | af724f5c150175bc6d676c857eab4ba26260db40 /spec/helpers_spec.cr | |
| parent | 705e4fca06c4f895e434324d12d5f180d5c3b4d4 (diff) | |
| download | invidious-2600695927311062fc9e6abd980bb33f73fe75a6.tar.gz invidious-2600695927311062fc9e6abd980bb33f73fe75a6.tar.bz2 invidious-2600695927311062fc9e6abd980bb33f73fe75a6.zip | |
fix search
Put search page in the super secret proto field
Diffstat (limited to 'spec/helpers_spec.cr')
| -rw-r--r-- | spec/helpers_spec.cr | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/helpers_spec.cr b/spec/helpers_spec.cr index d297759e..073d2700 100644 --- a/spec/helpers_spec.cr +++ b/spec/helpers_spec.cr @@ -65,15 +65,15 @@ describe "Helper" do describe "#produce_search_params" do it "correctly produces token for searching with specified filters" do - produce_search_params.should eq("CAASAhAB") + produce_search_params.should eq("CAASAhABSAA%3D") - produce_search_params(sort: "upload_date", content_type: "video").should eq("CAISAhAB") + produce_search_params(sort: "upload_date", content_type: "video").should eq("CAISAhABSAA%3D") - produce_search_params(content_type: "playlist").should eq("CAASAhAD") + produce_search_params(content_type: "playlist").should eq("CAASAhADSAA%3D") - produce_search_params(sort: "date", content_type: "video", features: ["hd", "cc", "purchased", "hdr"]).should eq("CAISCxABIAEwAUgByAEB") + produce_search_params(sort: "date", content_type: "video", features: ["hd", "cc", "purchased", "hdr"]).should eq("CAISCxABIAEwAUgByAEBSAA%3D") - produce_search_params(content_type: "channel").should eq("CAASAhAC") + produce_search_params(content_type: "channel").should eq("CAASAhACSAA%3D") end end |
