Skip to content

Commit

Permalink
test(geo): add error handling unit tests (#3241)
Browse files Browse the repository at this point in the history
  • Loading branch information
phantumcode authored Sep 29, 2023
1 parent 74f6f83 commit 0ecd9ff
Show file tree
Hide file tree
Showing 3 changed files with 491 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,6 @@ struct GeoPluginConfigError {
}

// MARK: - Maps
static let mapConfigMissing = """
Map configuration is missing from amplifyconfiguration.json.
Make sure amplifyconfiguration.json includes a `maps` section.
"""

static func mapInvalid(mapName: String) -> PluginError {
PluginError.pluginConfigurationError(
Expand Down Expand Up @@ -120,11 +116,6 @@ struct GeoPluginConfigError {
}

// MARK: - Search
static let searchConfigMissing = """
Search configuration is missing from amplifyconfiguration.json.
Make amplifyconfiguration.json includes a `searchIndices` section.
"""

static func searchDefaultNotFound(indexName: String?) -> PluginError {
PluginError.pluginConfigurationError(
"Configured default search index \(indexName ?? "nil") was not found in searchIndices.",
Expand Down
Loading

0 comments on commit 0ecd9ff

Please sign in to comment.