test: Edit test
Some checks failed
gitea-openium/resgen.swift/pipeline/head There was a failure building this commit
Some checks failed
gitea-openium/resgen.swift/pipeline/head There was a failure building this commit
This commit is contained in:
@ -91,16 +91,16 @@ class AnalyticsFileParser {
|
||||
parameters: screen.parameters
|
||||
)
|
||||
|
||||
guard target.contains(Analytics.TargetType.matomo.value) else { continue }
|
||||
if target.contains(Analytics.TargetType.matomo.value) {
|
||||
// Path
|
||||
|
||||
guard let path = screen.path else {
|
||||
let error = GenerateError.missingElement("screen path")
|
||||
Generate.exit(withError: error)
|
||||
}
|
||||
|
||||
// Path
|
||||
|
||||
guard let path = screen.path else {
|
||||
let error = GenerateError.missingElement("screen path")
|
||||
Generate.exit(withError: error)
|
||||
definition.path = path
|
||||
}
|
||||
|
||||
definition.path = path
|
||||
|
||||
definitions.append(definition)
|
||||
}
|
||||
@ -121,25 +121,25 @@ class AnalyticsFileParser {
|
||||
parameters: event.parameters
|
||||
)
|
||||
|
||||
guard target.contains(Analytics.TargetType.matomo.value) else { continue }
|
||||
|
||||
// Category
|
||||
|
||||
guard let category = event.category else {
|
||||
let error = GenerateError.missingElement("event category")
|
||||
Generate.exit(withError: error)
|
||||
if target.contains(Analytics.TargetType.matomo.value) {
|
||||
// Category
|
||||
|
||||
guard let category = event.category else {
|
||||
let error = GenerateError.missingElement("event category")
|
||||
Generate.exit(withError: error)
|
||||
}
|
||||
|
||||
definition.category = category
|
||||
|
||||
// Action
|
||||
|
||||
guard let action = event.action else {
|
||||
let error = GenerateError.missingElement("event action")
|
||||
Generate.exit(withError: error)
|
||||
}
|
||||
|
||||
definition.action = action
|
||||
}
|
||||
|
||||
definition.category = category
|
||||
|
||||
// Action
|
||||
|
||||
guard let action = event.action else {
|
||||
let error = GenerateError.missingElement("event action")
|
||||
Generate.exit(withError: error)
|
||||
}
|
||||
|
||||
definition.action = action
|
||||
|
||||
definitions.append(definition)
|
||||
}
|
||||
|
Reference in New Issue
Block a user