From df6c2de47ec21a17a1709e7c694d8a0b1127f74c Mon Sep 17 00:00:00 2001 From: Nathan Ansel Date: Thu, 7 Sep 2023 11:15:11 -0500 Subject: [PATCH] BIT-100 Hardcodes KnownDevice fixtures --- .../KnownDevice/Fixtures/APITestData+KnownDevice.swift | 6 ++++-- .../API/Device/KnownDevice/Fixtures/KnownDeviceFalse.json | 1 - .../API/Device/KnownDevice/Fixtures/KnownDeviceTrue.json | 1 - 3 files changed, 4 insertions(+), 4 deletions(-) delete mode 100644 BitwardenShared/Core/Auth/Services/API/Device/KnownDevice/Fixtures/KnownDeviceFalse.json delete mode 100644 BitwardenShared/Core/Auth/Services/API/Device/KnownDevice/Fixtures/KnownDeviceTrue.json diff --git a/BitwardenShared/Core/Auth/Services/API/Device/KnownDevice/Fixtures/APITestData+KnownDevice.swift b/BitwardenShared/Core/Auth/Services/API/Device/KnownDevice/Fixtures/APITestData+KnownDevice.swift index 6cf473f6d..8da118d52 100644 --- a/BitwardenShared/Core/Auth/Services/API/Device/KnownDevice/Fixtures/APITestData+KnownDevice.swift +++ b/BitwardenShared/Core/Auth/Services/API/Device/KnownDevice/Fixtures/APITestData+KnownDevice.swift @@ -1,4 +1,6 @@ +import Foundation + extension APITestData { - static let knownDeviceTrue = loadFromBundle(resource: "KnownDeviceTrue", extension: "json") - static let knownDeviceFalse = loadFromBundle(resource: "KnownDeviceFalse", extension: "json") + static let knownDeviceTrue = APITestData(data: Data("true".utf8)) + static let knownDeviceFalse = APITestData(data: Data("false".utf8)) } diff --git a/BitwardenShared/Core/Auth/Services/API/Device/KnownDevice/Fixtures/KnownDeviceFalse.json b/BitwardenShared/Core/Auth/Services/API/Device/KnownDevice/Fixtures/KnownDeviceFalse.json deleted file mode 100644 index c508d5366..000000000 --- a/BitwardenShared/Core/Auth/Services/API/Device/KnownDevice/Fixtures/KnownDeviceFalse.json +++ /dev/null @@ -1 +0,0 @@ -false diff --git a/BitwardenShared/Core/Auth/Services/API/Device/KnownDevice/Fixtures/KnownDeviceTrue.json b/BitwardenShared/Core/Auth/Services/API/Device/KnownDevice/Fixtures/KnownDeviceTrue.json deleted file mode 100644 index 27ba77dda..000000000 --- a/BitwardenShared/Core/Auth/Services/API/Device/KnownDevice/Fixtures/KnownDeviceTrue.json +++ /dev/null @@ -1 +0,0 @@ -true