Skip to content

Commit

Permalink
fix coverage ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerivec committed Jan 2, 2025
1 parent 5baf28e commit d30a93b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/adapter/ember/adapter/emberAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,7 @@ export class EmberAdapter extends Adapter {
);
}

/* istanbul ignore next */
/* v8 ignore next */
const appKeyRequestsPolicy = ALLOW_APP_KEY_REQUESTS ? EzspDecisionId.ALLOW_APP_KEY_REQUESTS : EzspDecisionId.DENY_APP_KEY_REQUESTS;
status = await this.emberSetEzspPolicy(EzspPolicyId.APP_KEY_REQUEST_POLICY, appKeyRequestsPolicy);

Expand Down Expand Up @@ -1374,13 +1374,14 @@ export class EmberAdapter extends Adapter {
if (backup) {
logger.info(`[INIT FORM] Forming from backup.`, NS);
// `backup` valid in this `action` path (not detected by TS)
/* istanbul ignore next */
/* v8 ignore start */
const keyList: LinkKeyBackupData[] = backup!.devices.map((device) => ({
deviceEui64: ZSpec.Utils.eui64BEBufferToHex(device.ieeeAddress),
key: {contents: device.linkKey!.key},
outgoingFrameCounter: device.linkKey!.txCounter,
incomingFrameCounter: device.linkKey!.rxCounter,
}));
/* v8 ignore stop */

// before forming
await this.importLinkKeys(keyList);
Expand Down

0 comments on commit d30a93b

Please sign in to comment.