Skip to content

Commit 5a4b1f9

Browse files
author
Sang Truong
committed
BUGFIX:MSF-22720 - Fix Unit test
1 parent 40771db commit 5a4b1f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/unit/helpers/global_helpers_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@
6262
end
6363

6464
it 'should encode params and preserve the nil in hidden' do
65-
x = GoodData::Helpers.decode_params(GoodData::Helpers::ENCODED_HIDDEN_PARAMS_KEY.to_s => nil)
66-
expect(x).to eq("gd_encoded_hidden_params" => nil)
65+
x = GoodData::Helpers.decode_params(GoodData::Helpers::ENCODED_HIDDEN_PARAMS_KEY.to_s => nil, GoodData::Helpers::ENCODED_PARAMS_KEY.to_s => '{"d":{"b": "c"}}')
66+
expect(x).to eq({"d"=>{"b"=>"c"}, "gd_encoded_hidden_params"=>nil})
6767
end
6868

6969
it 'should encode params and preserve the nil in hidden' do

0 commit comments

Comments
 (0)