Skip to content

Commit

Permalink
test: Update some old tests
Browse files Browse the repository at this point in the history
Signed-off-by: Philippe Weidmann <[email protected]>
  • Loading branch information
PhilippeWeidmann committed Feb 7, 2025
1 parent 26f39da commit 1e0e38d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ final class UTSceneRestorationMetadata: XCTestCase {
XCTAssertEqual(metadata["filesIds"] as? [Int], [1337])
XCTAssertEqual(metadata["currentIndex"] as? Int, Int(0))
XCTAssertEqual(metadata["normalFolderHierarchy"] as? Bool, true)
XCTAssertEqual(metadata["presentationOrigin"] as? PresentationOrigin, .activities)
XCTAssertEqual(metadata["presentationOrigin"] as? String, PresentationOrigin.activities.rawValue)
}

@MainActor func testFileDetailViewController() {
Expand Down
2 changes: 2 additions & 0 deletions kDriveTests/kDriveCore/Drive/ITDrive.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ final class ITDrive: XCTestCase {
}

let decoder = JSONDecoder()
decoder.keyDecodingStrategy = .convertFromSnakeCase

// WHEN
do {
Expand All @@ -62,6 +63,7 @@ final class ITDrive: XCTestCase {
}

let decoder = JSONDecoder()
decoder.keyDecodingStrategy = .convertFromSnakeCase

// WHEN
do {
Expand Down

0 comments on commit 1e0e38d

Please sign in to comment.