Skip to content

Commit

Permalink
Rename function to getCellularInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
monkbroc committed Jan 26, 2024
1 parent affcf2e commit d2fb469
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/cellular-device.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const CellularDevice = base => class extends base {
* @param {Number} [options.timeout] Timeout (milliseconds).
* @return {Promise<Object>}
*/
async getIccidAndImei({ timeout = globalOptions.requestTimeout } = {}) {
async getCellularInfo({ timeout = globalOptions.requestTimeout } = {}) {
const r = await this.sendRequest(Request.CELLULAR_GET_ICCID, null /* msg */, { timeout });
return {
iccid: r.iccid,
Expand Down
4 changes: 2 additions & 2 deletions test/integration/cellular-device.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ describe('cellular-device', function desc() {
});

describe('CellularDevice', () => {
describe('getIccidAndImei()', () => {
describe('getCellularInfo()', () => {
it('gets ICCID and IMEI of the cell radio', async () => {
await dev.open();
const iccidResp = await dev.getIccidAndImei();
const iccidResp = await dev.getCellularInfo();

expect(iccidResp).to.be.an('string');
expect(iccidResp).to.have.lengthOf.within(20, 22);
Expand Down

0 comments on commit d2fb469

Please sign in to comment.