Skip to content

Commit

Permalink
Make the linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
fpseverino committed Nov 23, 2024
1 parent cb6e3e5 commit c6163c3
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions Tests/ImperialTests/ShopifyTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ struct ShopifyTests {
)

try await app.test(
.GET, "/service-auth-complete?"
.GET,
"/service-auth-complete?"
+ "code=0907a61c0c8d55e99db179b68161bc00&"
+ "hmac=700e2dadb827fcc8609e9d5ce208b2e9cdaab9df07390d2cbca10d7c328fc4bf&"
+ "shop=some-shop.myshopify.com&"
Expand Down Expand Up @@ -57,12 +58,13 @@ struct ShopifyTests {
}

@Test("HMAC Validation") func hmacValidation() throws {
let url = URL(string: "https://domain.com/?"
+ "code=0907a61c0c8d55e99db179b68161bc00&"
+ "hmac=700e2dadb827fcc8609e9d5ce208b2e9cdaab9df07390d2cbca10d7c328fc4bf&"
+ "shop=some-shop.myshopify.com&"
+ "state=0.6784241404160823&"
+ "timestamp=1337178173"
let url = URL(
string: "https://domain.com/?"
+ "code=0907a61c0c8d55e99db179b68161bc00&"
+ "hmac=700e2dadb827fcc8609e9d5ce208b2e9cdaab9df07390d2cbca10d7c328fc4bf&"
+ "shop=some-shop.myshopify.com&"
+ "state=0.6784241404160823&"
+ "timestamp=1337178173"
)!

let hmac = url.generateHMAC(key: "hush")
Expand Down

0 comments on commit c6163c3

Please sign in to comment.