From 5c02cb534b1ecfd5a12754a4694d1bf8074c79dc Mon Sep 17 00:00:00 2001 From: Ajay Subramanya Date: Tue, 20 Aug 2024 11:15:01 -0500 Subject: [PATCH] updating comments --- .../KlaviyoCore/Models/KlaviyoAPIError.swift | 2 +- Sources/KlaviyoSwift/Models/Error.swift | 2 +- Sources/KlaviyoSwift/Models/Event.swift | 2 +- Sources/KlaviyoSwift/Models/Profile.swift | 2 +- .../Models/ProfileAPIExtension.swift | 2 +- .../testEventPayloadWithoutMetadata.1.json | 31 ------------ .../EncodableTests/testKlaviyoRequest.1.json | 47 ------------------ .../EncodableTests/testProfilePayload.1.json | 30 ------------ .../EncodableTests/testTokenPayload.1.json | 39 --------------- .../testUnregisterTokenPayload.1.json | 23 --------- .../KlaviyoAPITests/testEncodingError.1.txt | 49 ------------------- .../testInvalidStatusCode.1.txt | 4 -- .../KlaviyoAPITests/testInvalidURL.1.txt | 1 - .../KlaviyoAPITests/testNetworkError.1.txt | 2 - .../testSuccessfulResponseWithEvent.1.txt | 20 -------- .../testSuccessfulResponseWithEvent.2.txt | 1 - .../testSuccessfulResponseWithProfile.1.txt | 20 -------- .../testSuccessfulResponseWithProfile.2.txt | 1 - ...testSuccessfulResponseWithStoreToken.1.txt | 20 -------- ...testSuccessfulResponseWithStoreToken.2.txt | 1 - .../testCreateEmphemeralSesionHeaders.1.txt | 23 --------- .../testDefaultUserAgent.1.txt | 1 - .../testSessionDataTask.1.txt | 1 - .../testSessionDataTask.2.txt | 2 - .../EncodableTests/testKlaviyoState.1.json | 1 - 25 files changed, 5 insertions(+), 322 deletions(-) delete mode 100644 Tests/KlaviyoCoreTests/__Snapshots__/EncodableTests/testEventPayloadWithoutMetadata.1.json delete mode 100644 Tests/KlaviyoCoreTests/__Snapshots__/EncodableTests/testKlaviyoRequest.1.json delete mode 100644 Tests/KlaviyoCoreTests/__Snapshots__/EncodableTests/testProfilePayload.1.json delete mode 100644 Tests/KlaviyoCoreTests/__Snapshots__/EncodableTests/testTokenPayload.1.json delete mode 100644 Tests/KlaviyoCoreTests/__Snapshots__/EncodableTests/testUnregisterTokenPayload.1.json delete mode 100644 Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testEncodingError.1.txt delete mode 100644 Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testInvalidStatusCode.1.txt delete mode 100644 Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testInvalidURL.1.txt delete mode 100644 Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testNetworkError.1.txt delete mode 100644 Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testSuccessfulResponseWithEvent.1.txt delete mode 100644 Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testSuccessfulResponseWithEvent.2.txt delete mode 100644 Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testSuccessfulResponseWithProfile.1.txt delete mode 100644 Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testSuccessfulResponseWithProfile.2.txt delete mode 100644 Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testSuccessfulResponseWithStoreToken.1.txt delete mode 100644 Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testSuccessfulResponseWithStoreToken.2.txt delete mode 100644 Tests/KlaviyoCoreTests/__Snapshots__/NetworkSessionTests/testCreateEmphemeralSesionHeaders.1.txt delete mode 100644 Tests/KlaviyoCoreTests/__Snapshots__/NetworkSessionTests/testDefaultUserAgent.1.txt delete mode 100644 Tests/KlaviyoCoreTests/__Snapshots__/NetworkSessionTests/testSessionDataTask.1.txt delete mode 100644 Tests/KlaviyoCoreTests/__Snapshots__/NetworkSessionTests/testSessionDataTask.2.txt delete mode 100644 Tests/KlaviyoSwiftTests/__Snapshots__/EncodableTests/testKlaviyoState.1.json diff --git a/Sources/KlaviyoCore/Models/KlaviyoAPIError.swift b/Sources/KlaviyoCore/Models/KlaviyoAPIError.swift index 88135176..e633c9ac 100644 --- a/Sources/KlaviyoCore/Models/KlaviyoAPIError.swift +++ b/Sources/KlaviyoCore/Models/KlaviyoAPIError.swift @@ -1,5 +1,5 @@ // -// File.swift +// KlaviyoAPIError.swift // // // Created by Ajay Subramanya on 8/8/24. diff --git a/Sources/KlaviyoSwift/Models/Error.swift b/Sources/KlaviyoSwift/Models/Error.swift index 05e1a174..a419cbc5 100644 --- a/Sources/KlaviyoSwift/Models/Error.swift +++ b/Sources/KlaviyoSwift/Models/Error.swift @@ -1,5 +1,5 @@ // -// File.swift +// Error.swift // // // Created by Ajay Subramanya on 8/6/24. diff --git a/Sources/KlaviyoSwift/Models/Event.swift b/Sources/KlaviyoSwift/Models/Event.swift index 3bb8d282..3b7efb4d 100644 --- a/Sources/KlaviyoSwift/Models/Event.swift +++ b/Sources/KlaviyoSwift/Models/Event.swift @@ -1,5 +1,5 @@ // -// File.swift +// Event.swift // // // Created by Ajay Subramanya on 8/6/24. diff --git a/Sources/KlaviyoSwift/Models/Profile.swift b/Sources/KlaviyoSwift/Models/Profile.swift index fb3a9944..60791d7a 100644 --- a/Sources/KlaviyoSwift/Models/Profile.swift +++ b/Sources/KlaviyoSwift/Models/Profile.swift @@ -1,5 +1,5 @@ // -// File.swift +// Profile.swift // // // Created by Ajay Subramanya on 8/6/24. diff --git a/Sources/KlaviyoSwift/Models/ProfileAPIExtension.swift b/Sources/KlaviyoSwift/Models/ProfileAPIExtension.swift index 0d39edd9..caa32f79 100644 --- a/Sources/KlaviyoSwift/Models/ProfileAPIExtension.swift +++ b/Sources/KlaviyoSwift/Models/ProfileAPIExtension.swift @@ -1,5 +1,5 @@ // -// File.swift +// ProfileAPIExtension.swift // // // Created by Ajay Subramanya on 8/6/24. diff --git a/Tests/KlaviyoCoreTests/__Snapshots__/EncodableTests/testEventPayloadWithoutMetadata.1.json b/Tests/KlaviyoCoreTests/__Snapshots__/EncodableTests/testEventPayloadWithoutMetadata.1.json deleted file mode 100644 index 69b4464d..00000000 --- a/Tests/KlaviyoCoreTests/__Snapshots__/EncodableTests/testEventPayloadWithoutMetadata.1.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "data" : { - "attributes" : { - "metric" : { - "data" : { - "attributes" : { - "name" : "test" - }, - "type" : "metric" - } - }, - "profile" : { - "data" : { - "attributes" : { - "anonymous_id" : "anon-id", - "properties" : { - - } - }, - "type" : "profile" - } - }, - "properties" : { - - }, - "time" : "2009-02-13T23:31:30Z", - "unique_id" : "00000000-0000-0000-0000-000000000001" - }, - "type" : "event" - } -} diff --git a/Tests/KlaviyoCoreTests/__Snapshots__/EncodableTests/testKlaviyoRequest.1.json b/Tests/KlaviyoCoreTests/__Snapshots__/EncodableTests/testKlaviyoRequest.1.json deleted file mode 100644 index cc8253d1..00000000 --- a/Tests/KlaviyoCoreTests/__Snapshots__/EncodableTests/testKlaviyoRequest.1.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "apiKey" : "foo", - "endpoint" : { - "registerPushToken" : { - "_0" : { - "data" : { - "attributes" : { - "background" : "AVAILABLE", - "device_metadata" : { - "app_build" : "1", - "app_id" : "com.klaviyo.fooapp", - "app_name" : "FooApp", - "app_version" : "1.2.3", - "device_id" : "fe-fi-fo-fum", - "device_model" : "jPhone 1,1", - "environment" : "debug", - "klaviyo_sdk" : "swift", - "manufacturer" : "Orange", - "os_name" : "iOS", - "os_version" : "1.1.1", - "sdk_version" : "3.2.0" - }, - "enablement_status" : "AUTHORIZED", - "platform" : "ios", - "profile" : { - "data" : { - "attributes" : { - "anonymous_id" : "foo", - "email" : "foo", - "phone_number" : "foo", - "properties" : { - - } - }, - "type" : "profile" - } - }, - "token" : "foo", - "vendor" : "APNs" - }, - "type" : "push-token" - } - } - } - }, - "uuid" : "00000000-0000-0000-0000-000000000001" -} diff --git a/Tests/KlaviyoCoreTests/__Snapshots__/EncodableTests/testProfilePayload.1.json b/Tests/KlaviyoCoreTests/__Snapshots__/EncodableTests/testProfilePayload.1.json deleted file mode 100644 index c8491d66..00000000 --- a/Tests/KlaviyoCoreTests/__Snapshots__/EncodableTests/testProfilePayload.1.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "data" : { - "attributes" : { - "anonymous_id" : "foo", - "email" : "blobemail", - "external_id" : "blobid", - "first_name" : "Blob", - "image" : "foo", - "last_name" : "Junior", - "location" : { - "address1" : "blob", - "address2" : "blob", - "city" : "blob city", - "country" : "Blobland", - "latitude" : 1, - "longitude" : 1, - "region" : "BL", - "timezone" : "EST", - "zip" : "0BLOB" - }, - "organization" : "Blobco", - "phone_number" : "+15555555555", - "properties" : { - - }, - "title" : "Jelly" - }, - "type" : "profile" - } -} diff --git a/Tests/KlaviyoCoreTests/__Snapshots__/EncodableTests/testTokenPayload.1.json b/Tests/KlaviyoCoreTests/__Snapshots__/EncodableTests/testTokenPayload.1.json deleted file mode 100644 index 28dd3b60..00000000 --- a/Tests/KlaviyoCoreTests/__Snapshots__/EncodableTests/testTokenPayload.1.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "data" : { - "attributes" : { - "background" : "AVAILABLE", - "device_metadata" : { - "app_build" : "1", - "app_id" : "com.klaviyo.fooapp", - "app_name" : "FooApp", - "app_version" : "1.2.3", - "device_id" : "fe-fi-fo-fum", - "device_model" : "jPhone 1,1", - "environment" : "debug", - "klaviyo_sdk" : "swift", - "manufacturer" : "Orange", - "os_name" : "iOS", - "os_version" : "1.1.1", - "sdk_version" : "3.2.0" - }, - "enablement_status" : "AUTHORIZED", - "platform" : "ios", - "profile" : { - "data" : { - "attributes" : { - "anonymous_id" : "foo", - "email" : "foo", - "phone_number" : "foo", - "properties" : { - - } - }, - "type" : "profile" - } - }, - "token" : "foo", - "vendor" : "APNs" - }, - "type" : "push-token" - } -} diff --git a/Tests/KlaviyoCoreTests/__Snapshots__/EncodableTests/testUnregisterTokenPayload.1.json b/Tests/KlaviyoCoreTests/__Snapshots__/EncodableTests/testUnregisterTokenPayload.1.json deleted file mode 100644 index e4e5fdab..00000000 --- a/Tests/KlaviyoCoreTests/__Snapshots__/EncodableTests/testUnregisterTokenPayload.1.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "data" : { - "attributes" : { - "platform" : "ios", - "profile" : { - "data" : { - "attributes" : { - "anonymous_id" : "foo", - "email" : "foo", - "phone_number" : "foo", - "properties" : { - - } - }, - "type" : "profile" - } - }, - "token" : "foo", - "vendor" : "APNs" - }, - "type" : "push-token-unregister" - } -} diff --git a/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testEncodingError.1.txt b/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testEncodingError.1.txt deleted file mode 100644 index ae591ad9..00000000 --- a/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testEncodingError.1.txt +++ /dev/null @@ -1,49 +0,0 @@ -▿ KlaviyoAPIError - ▿ internalRequestError: KlaviyoAPIError - ▿ dataEncodingError: KlaviyoRequest - - apiKey: "foo" - ▿ endpoint: KlaviyoEndpoint - ▿ createProfile: CreateProfilePayload - ▿ data: ProfilePayload - ▿ attributes: Attributes - - anonymousId: "foo" - ▿ email: Optional - - some: "blobemail" - ▿ externalId: Optional - - some: "blobid" - ▿ firstName: Optional - - some: "Blob" - ▿ image: Optional - - some: "foo" - ▿ lastName: Optional - - some: "Junior" - ▿ location: Optional - ▿ some: Location - ▿ address1: Optional - - some: "blob" - ▿ address2: Optional - - some: "blob" - ▿ city: Optional - - some: "blob city" - ▿ country: Optional - - some: "Blobland" - ▿ latitude: Optional - - some: 1.0 - ▿ longitude: Optional - - some: 1.0 - ▿ region: Optional - - some: "BL" - ▿ timezone: Optional - - some: "EST" - ▿ zip: Optional - - some: "0BLOB" - ▿ organization: Optional - - some: "Blobco" - ▿ phoneNumber: Optional - - some: "+15555555555" - ▿ properties: [:] - - value: 0 key/value pairs - ▿ title: Optional - - some: "Jelly" - - type: "profile" - - uuid: "00000000-0000-0000-0000-000000000001" diff --git a/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testInvalidStatusCode.1.txt b/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testInvalidStatusCode.1.txt deleted file mode 100644 index ccb902f1..00000000 --- a/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testInvalidStatusCode.1.txt +++ /dev/null @@ -1,4 +0,0 @@ -▿ KlaviyoAPIError - ▿ httpError: (2 elements) - - .0: 500 - - .1: 0 bytes diff --git a/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testInvalidURL.1.txt b/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testInvalidURL.1.txt deleted file mode 100644 index da5e392f..00000000 --- a/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testInvalidURL.1.txt +++ /dev/null @@ -1 +0,0 @@ -internalRequestError(KlaviyoCore.KlaviyoAPIError.internalError("Invalid url string. API URL: ")) diff --git a/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testNetworkError.1.txt b/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testNetworkError.1.txt deleted file mode 100644 index 8c73f9ae..00000000 --- a/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testNetworkError.1.txt +++ /dev/null @@ -1,2 +0,0 @@ -▿ KlaviyoAPIError - - networkError: Error Domain=network error Code=0 "(null)" diff --git a/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testSuccessfulResponseWithEvent.1.txt b/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testSuccessfulResponseWithEvent.1.txt deleted file mode 100644 index fafe69a5..00000000 --- a/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testSuccessfulResponseWithEvent.1.txt +++ /dev/null @@ -1,20 +0,0 @@ -▿ dead_beef/client/events/?company_id=foo - ▿ url: Optional - - some: dead_beef/client/events/?company_id=foo - - cachePolicy: 0 - - timeoutInterval: 60.0 - - mainDocumentURL: Optional.none - - networkServiceType: NSURLRequestNetworkServiceType.NSURLRequestNetworkServiceType - - allowsCellularAccess: true - ▿ httpMethod: Optional - - some: "POST" - ▿ allHTTPHeaderFields: Optional> - ▿ some: 1 key/value pair - ▿ (2 elements) - - key: "X-Klaviyo-Attempt-Count" - - value: "0/50" - ▿ httpBody: Optional - - some: 0 bytes - - httpBodyStream: Optional.none - - httpShouldHandleCookies: true - - httpShouldUsePipelining: false diff --git a/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testSuccessfulResponseWithEvent.2.txt b/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testSuccessfulResponseWithEvent.2.txt deleted file mode 100644 index eff1843b..00000000 --- a/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testSuccessfulResponseWithEvent.2.txt +++ /dev/null @@ -1 +0,0 @@ -- 0 bytes diff --git a/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testSuccessfulResponseWithProfile.1.txt b/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testSuccessfulResponseWithProfile.1.txt deleted file mode 100644 index 9563cd57..00000000 --- a/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testSuccessfulResponseWithProfile.1.txt +++ /dev/null @@ -1,20 +0,0 @@ -▿ dead_beef/client/profiles/?company_id=foo - ▿ url: Optional - - some: dead_beef/client/profiles/?company_id=foo - - cachePolicy: 0 - - timeoutInterval: 60.0 - - mainDocumentURL: Optional.none - - networkServiceType: NSURLRequestNetworkServiceType.NSURLRequestNetworkServiceType - - allowsCellularAccess: true - ▿ httpMethod: Optional - - some: "POST" - ▿ allHTTPHeaderFields: Optional> - ▿ some: 1 key/value pair - ▿ (2 elements) - - key: "X-Klaviyo-Attempt-Count" - - value: "0/50" - ▿ httpBody: Optional - - some: 0 bytes - - httpBodyStream: Optional.none - - httpShouldHandleCookies: true - - httpShouldUsePipelining: false diff --git a/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testSuccessfulResponseWithProfile.2.txt b/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testSuccessfulResponseWithProfile.2.txt deleted file mode 100644 index eff1843b..00000000 --- a/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testSuccessfulResponseWithProfile.2.txt +++ /dev/null @@ -1 +0,0 @@ -- 0 bytes diff --git a/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testSuccessfulResponseWithStoreToken.1.txt b/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testSuccessfulResponseWithStoreToken.1.txt deleted file mode 100644 index b80d173f..00000000 --- a/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testSuccessfulResponseWithStoreToken.1.txt +++ /dev/null @@ -1,20 +0,0 @@ -▿ dead_beef/client/push-tokens/?company_id=foo - ▿ url: Optional - - some: dead_beef/client/push-tokens/?company_id=foo - - cachePolicy: 0 - - timeoutInterval: 60.0 - - mainDocumentURL: Optional.none - - networkServiceType: NSURLRequestNetworkServiceType.NSURLRequestNetworkServiceType - - allowsCellularAccess: true - ▿ httpMethod: Optional - - some: "POST" - ▿ allHTTPHeaderFields: Optional> - ▿ some: 1 key/value pair - ▿ (2 elements) - - key: "X-Klaviyo-Attempt-Count" - - value: "0/50" - ▿ httpBody: Optional - - some: 0 bytes - - httpBodyStream: Optional.none - - httpShouldHandleCookies: true - - httpShouldUsePipelining: false diff --git a/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testSuccessfulResponseWithStoreToken.2.txt b/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testSuccessfulResponseWithStoreToken.2.txt deleted file mode 100644 index eff1843b..00000000 --- a/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testSuccessfulResponseWithStoreToken.2.txt +++ /dev/null @@ -1 +0,0 @@ -- 0 bytes diff --git a/Tests/KlaviyoCoreTests/__Snapshots__/NetworkSessionTests/testCreateEmphemeralSesionHeaders.1.txt b/Tests/KlaviyoCoreTests/__Snapshots__/NetworkSessionTests/testCreateEmphemeralSesionHeaders.1.txt deleted file mode 100644 index 19cd06cb..00000000 --- a/Tests/KlaviyoCoreTests/__Snapshots__/NetworkSessionTests/testCreateEmphemeralSesionHeaders.1.txt +++ /dev/null @@ -1,23 +0,0 @@ -▿ Optional> - ▿ some: 6 key/value pairs - ▿ (2 elements) - - key: "Accept-Encoding" - ▿ value: 3 elements - - "br" - - "gzip" - - "deflate" - ▿ (2 elements) - - key: "User-Agent" - - value: "FooApp/1.2.3 (com.klaviyo.fooapp; build:1; iOS 1.1.1) klaviyo-ios/3.2.0" - ▿ (2 elements) - - key: "X-Klaviyo-Mobile" - - value: "1" - ▿ (2 elements) - - key: "accept" - - value: "application/json" - ▿ (2 elements) - - key: "content-type" - - value: "application/json" - ▿ (2 elements) - - key: "revision" - - value: "2023-07-15" diff --git a/Tests/KlaviyoCoreTests/__Snapshots__/NetworkSessionTests/testDefaultUserAgent.1.txt b/Tests/KlaviyoCoreTests/__Snapshots__/NetworkSessionTests/testDefaultUserAgent.1.txt deleted file mode 100644 index 40374900..00000000 --- a/Tests/KlaviyoCoreTests/__Snapshots__/NetworkSessionTests/testDefaultUserAgent.1.txt +++ /dev/null @@ -1 +0,0 @@ -- "FooApp/1.2.3 (com.klaviyo.fooapp; build:1; iOS 1.1.1) klaviyo-ios/3.2.0" diff --git a/Tests/KlaviyoCoreTests/__Snapshots__/NetworkSessionTests/testSessionDataTask.1.txt b/Tests/KlaviyoCoreTests/__Snapshots__/NetworkSessionTests/testSessionDataTask.1.txt deleted file mode 100644 index eff1843b..00000000 --- a/Tests/KlaviyoCoreTests/__Snapshots__/NetworkSessionTests/testSessionDataTask.1.txt +++ /dev/null @@ -1 +0,0 @@ -- 0 bytes diff --git a/Tests/KlaviyoCoreTests/__Snapshots__/NetworkSessionTests/testSessionDataTask.2.txt b/Tests/KlaviyoCoreTests/__Snapshots__/NetworkSessionTests/testSessionDataTask.2.txt deleted file mode 100644 index 2d85f9c7..00000000 --- a/Tests/KlaviyoCoreTests/__Snapshots__/NetworkSessionTests/testSessionDataTask.2.txt +++ /dev/null @@ -1,2 +0,0 @@ -- { URL: fake_url } { Status Code: 200, Headers { -} } diff --git a/Tests/KlaviyoSwiftTests/__Snapshots__/EncodableTests/testKlaviyoState.1.json b/Tests/KlaviyoSwiftTests/__Snapshots__/EncodableTests/testKlaviyoState.1.json deleted file mode 100644 index fa2f893a..00000000 --- a/Tests/KlaviyoSwiftTests/__Snapshots__/EncodableTests/testKlaviyoState.1.json +++ /dev/null @@ -1 +0,0 @@ -{"phoneNumber":"foo","queue":[{"apiKey":"foo","uuid":"00000000-0000-0000-0000-000000000001","endpoint":{"registerPushToken":{"_0":{"data":{"type":"push-token","attributes":{"token":"foo","enablement_status":"AUTHORIZED","platform":"ios","background":"AVAILABLE","profile":{"data":{"attributes":{"anonymous_id":"foo","phone_number":"foo","email":"foo","properties":{}},"type":"profile"}},"device_metadata":{"klaviyo_sdk":"swift","os_version":"17.0.0","device_id":"278E698D-7E37-477E-BD83-60BB4FCF404E","app_id":"com.apple.dt.xctest.tool","os_name":"iOS","manufacturer":"Apple","app_build":"22189","sdk_version":"3.2.0","environment":"debug","app_name":"xctest","app_version":"15.0","device_model":"arm64"},"vendor":"APNs"}}}}}}],"email":"foo","anonymousId":"foo","pushTokenData":{"pushBackground":"AVAILABLE","deviceData":{"device_id":"fe-fi-fo-fum","manufacturer":"Orange","os_version":"1.1.1","app_name":"FooApp","app_version":"1.2.3","app_build":"1","device_model":"jPhone 1,1","app_id":"com.klaviyo.fooapp","environment":"debug","sdk_version":"3.2.0","klaviyo_sdk":"swift","os_name":"iOS"},"pushToken":"foo","pushEnablement":"AUTHORIZED"}} \ No newline at end of file