From 2b4a79e5fcd1b4dcaf36cc7031633f22ff7d8103 Mon Sep 17 00:00:00 2001 From: Kazuaki Matsuo Date: Tue, 9 Jan 2024 11:58:00 -0800 Subject: [PATCH] test: update test --- test/unit/android-helper-specs.js | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/test/unit/android-helper-specs.js b/test/unit/android-helper-specs.js index 1e77f0db..00f79b8f 100644 --- a/test/unit/android-helper-specs.js +++ b/test/unit/android-helper-specs.js @@ -118,7 +118,7 @@ describe('Android Helpers', function () { it('should fail if avd name is not specified', async function () { await helpers.prepareEmulator(adb, {}).should.eventually.be.rejected; }); - }), + }) ); describe( 'prepareAvdArgs', @@ -143,7 +143,7 @@ describe('Android Helpers', function () { let args = prepareAvdArgs(adb, {isHeadless: true, avdArgs}); args.should.eql(['-no-window']); }); - }), + }) ); describe('ensureNetworkSpeed', function () { it('should return value if network speed is valid', function () { @@ -206,7 +206,7 @@ describe('Android Helpers', function () { .should.be.rejectedWith(Error, `Failed to set language: fr and country: FR`); mocks.adb.verify(); }); - }), + }) ); describe('getDeviceInfoFromCaps', function () { @@ -493,9 +493,9 @@ describe('Android Helpers', function () { }; (await helpers.getLaunchInfo(adb, inOpts)).should.deep.equal(outOpts); mocks.adb.verify(); - }, + } ); - }), + }) ); describe( 'resetApp', @@ -535,7 +535,7 @@ describe('Android Helpers', function () { await helpers.resetApp(adb, {app: localApkPath, appPackage: pkg, fastReset: true}); mocks.adb.verify(); }); - }), + }) ); describe( @@ -590,7 +590,7 @@ describe('Android Helpers', function () { mocks.adb.verify(); mocks.helpers.verify(); }); - }), + }) ); describe( 'installOtherApks', @@ -628,7 +628,7 @@ describe('Android Helpers', function () { await helpers.installOtherApks([fakeApk, otherFakeApk], adb, opts); mocks.adb.verify(); }); - }), + }) ); describe( 'pushSettingsApp', @@ -674,7 +674,7 @@ describe('Android Helpers', function () { await helpers.pushSettingsApp(adb); mocks.adb.verify(); }); - }), + }) ); describe( 'setMockLocationApp', @@ -701,7 +701,7 @@ describe('Android Helpers', function () { await helpers.setMockLocationApp(adb, 'io.appium.settings'); mocks.adb.verify(); }); - }), + }) ); describe( 'pushStrings', @@ -751,7 +751,7 @@ describe('Android Helpers', function () { mocks.adb.verify(); mocks.fs.verify(); }); - }), + }) ); describe( 'unlock', @@ -848,7 +848,7 @@ describe('Android Helpers', function () { .should.be.rejectedWith('Fingerprint'); mocks.helpers.verify(); }); - }), + }) ); describe( 'initDevice', @@ -910,7 +910,10 @@ describe('Android Helpers', function () { mocks.helpers.expects('pushSettingsApp').once(); mocks.helpers.expects('ensureDeviceLocale').never(); mocks.helpers.expects('setMockLocationApp').once(); - mocks.helpers.expects('hideKeyboard').withExactArgs(adb).once(); + mocks.helpers + .expects('hideKeyboard') + .withExactArgs(adb) + .once(); await helpers.initDevice(adb, opts); mocks.helpers.verify(); mocks.adb.verify(); @@ -966,7 +969,7 @@ describe('Android Helpers', function () { mocks.helpers.verify(); mocks.adb.verify(); }); - }), + }) ); describe('removeNullProperties', function () { it('should ignore null properties', function () {