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

Commit bb6a591

Browse files
authored
updating test cases
1 parent 84a78b5 commit bb6a591

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/test_jwe_encryption.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +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'
100101
assert !decrypted['body']['encrypted_data']
101102
end
102103

103104
def test_decrypt_a192gcm
104105
resp = File.read('./test/mock/jwe-response-a192gcm.json')
105106
jwe = McAPI::Encryption::JweEncryption.new(@test_config)
106107
decrypted = JSON.parse(jwe.decrypt(resp))
108+
assert_equal decrypted['foo'], 'bar'
107109
assert !decrypted['body']['encrypted_data']
108110
end
109111

0 commit comments

Comments
 (0)