From 1d11e42145129d094094197b3cc0cc1e2440974f Mon Sep 17 00:00:00 2001 From: Wesley Ray Date: Tue, 17 Jun 2025 14:01:17 -0400 Subject: [PATCH] Fix test mock input --- spec/utisl_spec.lua | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/spec/utisl_spec.lua b/spec/utisl_spec.lua index eb9922d..6a44afd 100755 --- a/spec/utisl_spec.lua +++ b/spec/utisl_spec.lua @@ -54,10 +54,15 @@ describe("Skyweave Utility Functions Module", function() it("should correctly decode a valid qmicli output", function() -- 1. Define the simulated raw output from a successful qmicli invocation. - local mock_qmicli_output = "QMI-Client: Synchronous call... \n" .. - "[/dev/cdc-wdm0] UIM transparent read result: \n" .. - "Read result:\n" .. - "\t'89:01:41:03:27:25:30:79:07:87:f9'\n" + local mock_qmicli_output = [[ +[17 Jun 2025, 13:57:41] -Warning ** [/dev/cdc-wdm0] requested auto mode but no MBIM QMUX support available +[/dev/cdc-wdm0] Successfully read information from the UIM: +Card result: + SW1: '0x90' + SW2: '0x00' +Read result: + 98:10:14:30:72:52:03:97:70:78 + ]] -- 2. Mock the command executor to return our simulated data. utils.execute_command = function(command)