Skip to content

Commit

Permalink
Fix iccid matching
Browse files Browse the repository at this point in the history
  • Loading branch information
keeramis committed Dec 10, 2024
1 parent 6b67442 commit 8c27bf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/esim.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ module.exports = class ESimCommands extends CLICommandBase {
// remove test ICCIDs from iccidsOnDeviceAfterDownload
const iccidsOnDeviceAfterDownloadFiltered = iccidsOnDeviceAfterDownload.filter((iccid) => !TEST_ICCID.includes(iccid));

const equal = _.isEqual(_.sortBy(iccidsOnDeviceAfterDownload), _.sortBy(iccidsOnDeviceAfterDownloadFiltered));
const equal = _.isEqual(_.sortBy(expectedIccids), _.sortBy(iccidsOnDeviceAfterDownloadFiltered));

res.details.iccidsOnDevice = iccidsOnDeviceAfterDownload;
res.details.rawLogs.push(equal ? ['Profiles on device match the expected profiles'] :
Expand Down

0 comments on commit 8c27bf4

Please sign in to comment.