From 938a9e35a2c100fdf05792db359a48c59d0b3e92 Mon Sep 17 00:00:00 2001 From: Jacob Hearst Date: Mon, 26 Feb 2024 06:42:44 -0600 Subject: [PATCH] Add mutate layout --- Package.swift | 5 +---- Sources/ScryfallKit/Models/Card/Card+enums.swift | 2 +- Tests/ScryfallKitTests/SmokeTests.swift | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Package.swift b/Package.swift index 24026aa..7580394 100644 --- a/Package.swift +++ b/Package.swift @@ -16,10 +16,7 @@ let package = Package( ], targets: [ .target( - name: "ScryfallKit", - swiftSettings: [ - .enableExperimentalFeature("StrictConcurrency") - ] + name: "ScryfallKit" ), .testTarget( name: "ScryfallKitTests", diff --git a/Sources/ScryfallKit/Models/Card/Card+enums.swift b/Sources/ScryfallKit/Models/Card/Card+enums.swift index 82f2609..6109fd5 100644 --- a/Sources/ScryfallKit/Models/Card/Card+enums.swift +++ b/Sources/ScryfallKit/Models/Card/Card+enums.swift @@ -125,7 +125,7 @@ extension Card { /// /// [Scryfall documentation](https://scryfall.com/docs/api/layouts) public enum Layout: String, CaseIterable, Codable, Sendable { - case normal, split, flip, transform, meld, leveler, saga, adventure, planar, scheme, vanguard, token, emblem, augment, host, `class`, battle, `case`, unknown + case normal, split, flip, transform, meld, leveler, saga, adventure, planar, scheme, vanguard, token, emblem, augment, host, `class`, battle, `case`, mutate, unknown case modalDfc = "modal_dfc" case doubleSided = "double_sided" case doubleFacedToken = "double_faced_token" diff --git a/Tests/ScryfallKitTests/SmokeTests.swift b/Tests/ScryfallKitTests/SmokeTests.swift index e11eea3..8dacd54 100644 --- a/Tests/ScryfallKitTests/SmokeTests.swift +++ b/Tests/ScryfallKitTests/SmokeTests.swift @@ -168,7 +168,7 @@ final class SmokeTests: XCTestCase { page += 1 results = try await client.searchCards(filters: [filter], page: page) checkForUnknowns(in: results.data) - usleep(500000) // Wait for 0.5 seconds + try await Task.sleep(for: .milliseconds(500)) } }