feat: Adds MQTTConnectionServiceTests

This commit is contained in:
2024-11-09 09:42:03 -05:00
parent 90c5b7c77f
commit 6c5115dcde
3 changed files with 70 additions and 2 deletions

View File

@@ -39,7 +39,7 @@ final class SensorsClientTests: XCTestCase {
func testSensorService() async throws {
let client = createClient(identifier: "testSensorService")
let mqtt = await client.client
let sensor = TemperatureAndHumiditySensor(location: .mixedAir, units: .metric)
let sensor = TemperatureAndHumiditySensor(location: .mixedAir)
let publishInfo = PublishInfoContainer(topicFilters: [
sensor.topics.dewPoint,
sensor.topics.enthalpy
@@ -99,7 +99,7 @@ final class SensorsClientTests: XCTestCase {
func testSensorCapturesPublishedState() async throws {
let client = createClient(identifier: "testSensorCapturesPublishedState")
let mqtt = await client.client
let sensor = TemperatureAndHumiditySensor(location: .mixedAir, units: .metric)
let sensor = TemperatureAndHumiditySensor(location: .mixedAir)
let publishInfo = PublishInfoContainer(topicFilters: [
sensor.topics.dewPoint,
sensor.topics.enthalpy