Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mallexxx committed Jan 16, 2024
1 parent 7dcee61 commit bc96955
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
11 changes: 7 additions & 4 deletions DuckDuckGo/DataImport/Bookmarks/Chromium/ImportedBookmarks.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,14 @@ struct ImportedBookmarks: Codable, Equatable {
struct BookmarkOrFolder: Codable, Equatable {
let name: String

enum EntityType: String, Codable {
case bookmark
case folder
struct EntityType: RawRepresentable, Codable, Equatable {
let rawValue: String

static let bookmark = EntityType(rawValue: "bookmark")
static let folder = EntityType(rawValue: "folder")
static let url = EntityType(rawValue: "url")
}
let type: EntityType
let type: EntityType?
let urlString: String?
var isDDGFavorite: Bool = false

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,4 +147,4 @@
"type" : "folder"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -147,4 +147,4 @@
"type" : "folder"
}
}
}
}

0 comments on commit bc96955

Please sign in to comment.