Skip to content
This repository was archived by the owner on Feb 28, 2024. It is now read-only.

Commit 3261f58

Browse files
authored
Update test_jwe_encryption.rb
1 parent bb6a591 commit 3261f58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_jwe_encryption.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,15 @@ def test_decrypt_a128gcm
9797
resp = File.read('./test/mock/jwe-response-a128gcm.json')
9898
jwe = McAPI::Encryption::JweEncryption.new(@test_config)
9999
decrypted = JSON.parse(jwe.decrypt(resp))
100-
assert_equal decrypted['foo'], 'bar'
100+
assert_equal decrypted['body']['foo'], 'bar'
101101
assert !decrypted['body']['encrypted_data']
102102
end
103103

104104
def test_decrypt_a192gcm
105105
resp = File.read('./test/mock/jwe-response-a192gcm.json')
106106
jwe = McAPI::Encryption::JweEncryption.new(@test_config)
107107
decrypted = JSON.parse(jwe.decrypt(resp))
108-
assert_equal decrypted['foo'], 'bar'
108+
assert_equal decrypted['body']['foo'], 'bar'
109109
assert !decrypted['body']['encrypted_data']
110110
end
111111

0 commit comments

Comments
 (0)