Skip to content

Commit

Permalink
chore: Update deprecated method name
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach committed Nov 30, 2024
1 parent d643540 commit ac82ee0
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/commands/device/emulator-console.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const EMU_CONSOLE_FEATURE = 'emulator_console';
* @returns {Promise<string>}
*/
export async function mobileExecEmuConsoleCommand(opts) {
this.ensureFeatureEnabled(EMU_CONSOLE_FEATURE);
this.assertFeatureEnabled(EMU_CONSOLE_FEATURE);

const {command, execTimeout, connTimeout, initTimeout} = opts;

Expand Down
2 changes: 1 addition & 1 deletion lib/commands/log.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const supportedLogTypes = {
* @returns
*/
getter: (self) => {
self.ensureFeatureEnabled(GET_SERVER_LOGS_FEATURE);
self.assertFeatureEnabled(GET_SERVER_LOGS_FEATURE);
return self.log.unwrap().record.map(nativeLogEntryToSeleniumEntry);
},
},
Expand Down
2 changes: 1 addition & 1 deletion lib/commands/permissions.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export async function mobileChangePermissions(opts) {
case PERMISSION_TARGET.PM:
return await changePermissionsViaPm.bind(this)(permissions, appPackage, _.toLower(action));
case PERMISSION_TARGET.APPOPS:
this.ensureFeatureEnabled(ADB_SHELL_FEATURE);
this.assertFeatureEnabled(ADB_SHELL_FEATURE);
return await changePermissionsViaAppops.bind(this)(
permissions,
appPackage,
Expand Down
2 changes: 1 addition & 1 deletion lib/commands/shell.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {ADB_SHELL_FEATURE} from '../utils';
* @returns {Promise<string | {stderr: string; stdout: string}>};
*/
export async function mobileShell(opts) {
this.ensureFeatureEnabled(ADB_SHELL_FEATURE);
this.assertFeatureEnabled(ADB_SHELL_FEATURE);
const {command, args = /** @type {string[]} */ ([]), timeout = 20000, includeStderr} = opts ?? {};

if (!_.isString(command)) {
Expand Down
2 changes: 1 addition & 1 deletion lib/commands/streamscreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const ADB_SCREEN_STREAMING_FEATURE = 'adb_screen_streaming';
* @returns {Promise<void>}
*/
export async function mobileStartScreenStreaming(options = {}) {
this.ensureFeatureEnabled(ADB_SCREEN_STREAMING_FEATURE);
this.assertFeatureEnabled(ADB_SCREEN_STREAMING_FEATURE);

const {
width,
Expand Down

0 comments on commit ac82ee0

Please sign in to comment.