From 94818f9f1e0f1c1a365f6e06d8f8373e7a703fb7 Mon Sep 17 00:00:00 2001 From: "niten\" (aider)" Date: Sun, 8 Jun 2025 08:39:47 -0700 Subject: [PATCH] test: Add test for create-mqtt-client! function in client.clj --- test/milquetoast/client.clj | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/milquetoast/client.clj b/test/milquetoast/client.clj index 305ce34..5340305 100644 --- a/test/milquetoast/client.clj +++ b/test/milquetoast/client.clj @@ -1,3 +1,8 @@ (ns milquetoast.client (:require [milquetoast.client :as sut] - [clojure.test :as t])) + [clojure.test :as t] + [org.eclipse.paho.client.mqttv3 MqttClient])) + +(t/deftest test-create-mqtt-client! + (t/testing "create-mqtt-client! returns an instance of MqttClient" + (t/is (instance? MqttClient (sut/create-mqtt-client! :broker-uri "tcp://localhost:1883")))))