feat: Begins pressure estimation feature tests.
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
import ComposableArchitecture
|
||||
import Testing
|
||||
@testable import PressureEstimationsFeature
|
||||
|
||||
struct FlaggedMeasurementListTests {
|
||||
|
||||
@Test(
|
||||
"Ensure Estimation Has Changes",
|
||||
.tags(.flaggedMeasurementList)
|
||||
)
|
||||
func ensureHasChanges() {
|
||||
let reducer = FlaggedMeasurementsList()
|
||||
let result = reducer.ensureHasChanges(
|
||||
formState: .init(
|
||||
existingMeasurement: SharedReader(Shared(.mock(type: .airHandler))),
|
||||
cfmTextField: 350,
|
||||
filterPressureDrop: 0.1
|
||||
),
|
||||
flaggedEstimations: []
|
||||
)
|
||||
#expect(result != nil)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
extension Tag {
|
||||
@Tag static var flaggedMeasurementList: Self
|
||||
}
|
||||
Reference in New Issue
Block a user