Skip to content

Commit 9ed1c14

Browse files
author
Ruben Nine
committed
Updating test.
1 parent 272b92e commit 9ed1c14

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

FilestackSDKTests/SecurityTests.swift

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,7 @@ class SecurityTests: XCTestCase {
2020
XCTAssertNoThrow(jsonData = try! policy.toJSON())
2121

2222
XCTAssertEqual(security.encodedPolicy, jsonData.base64EncodedString())
23-
24-
let signature: String = try! HMAC(key: "MY-APP-SECRET", variant: .sha256)
25-
.authenticate(Array(security.encodedPolicy.utf8))
26-
.toHexString()
27-
28-
XCTAssertEqual(security.signature, signature)
23+
XCTAssertEqual(security.signature.lowercased(), "752d1daa283c45ccccbeebbfc384b59b69fe4a8fc50607adc9937ed1789deaaa")
2924
}
3025

3126
func testDefaultInitializer() {

0 commit comments

Comments
 (0)