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)