Skip to content

Commit

Permalink
BUGFIX:MSF-22720 - Fix Unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Sang Truong committed Jan 5, 2022
1 parent 40771db commit 5a4b1f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/unit/helpers/global_helpers_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@
end

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

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

0 comments on commit 5a4b1f9

Please sign in to comment.