Skip to content

Commit

Permalink
use be.true/false
Browse files Browse the repository at this point in the history
  • Loading branch information
KazuCocoa committed Jun 21, 2024
1 parent 1508679 commit 8339010
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions test/unit/uiautomator2-specs.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ describe('UiAutomator2', function () {
'installState': adb.APP_INSTALL_STATE.NEWER_VERSION_INSTALLED,
...serverTestApk
}
]).should.eql(true);
]).should.be.true;
}),
it('with newer server is installed but the other could be old one', function () {
// Then, enforce to uninstall all apks
Expand All @@ -60,7 +60,7 @@ describe('UiAutomator2', function () {
'installState': adb.APP_INSTALL_STATE.OLDER_VERSION_INSTALLED,
...serverTestApk
}
]).should.eql(true);
]).should.be.true;
}),
it('with newer server is installed', function () {
uiautomator2.shouldUninstallServerPackages([
Expand All @@ -72,7 +72,7 @@ describe('UiAutomator2', function () {
'installState': adb.APP_INSTALL_STATE.SAME_VERSION_INSTALLED,
...serverTestApk
}
]).should.eql(false);
]).should.be.false;
}),
it('with older servers are installed', function () {
// then, installing newer serves are sufficient.
Expand All @@ -85,7 +85,7 @@ describe('UiAutomator2', function () {
'installState': adb.APP_INSTALL_STATE.OLDER_VERSION_INSTALLED,
...serverTestApk
}
]).should.eql(false);
]).should.be.false;
}),
it('with no server are installed', function () {
uiautomator2.shouldUninstallServerPackages([
Expand All @@ -97,7 +97,7 @@ describe('UiAutomator2', function () {
'installState': adb.APP_INSTALL_STATE.NOT_INSTALLED,
...serverTestApk
}
]).should.eql(false);
]).should.be.false;
});
});

Expand All @@ -118,7 +118,7 @@ describe('UiAutomator2', function () {
...serverTestApk
}
// since installation may fail
]).should.eql(false);
]).should.be.false;
}),
it('with newer server is installed but the other could be old one', function () {
// Then, enforce to uninstall all apks
Expand All @@ -131,7 +131,7 @@ describe('UiAutomator2', function () {
'installState': adb.APP_INSTALL_STATE.OLDER_VERSION_INSTALLED,
...serverTestApk
}
]).should.eql(true);
]).should.be.true;
}),
it('with newer server is installed', function () {
uiautomator2.shouldInstallServerPackages([
Expand All @@ -143,7 +143,7 @@ describe('UiAutomator2', function () {
'installState': adb.APP_INSTALL_STATE.SAME_VERSION_INSTALLED,
...serverTestApk
}
]).should.eql(false);
]).should.be.false;
}),
it('with older servers are installed', function () {
// then, installing newer serves are sufficient.
Expand All @@ -156,7 +156,7 @@ describe('UiAutomator2', function () {
'installState': adb.APP_INSTALL_STATE.OLDER_VERSION_INSTALLED,
...serverTestApk
}
]).should.eql(true);
]).should.be.true;
}),
it('with no server are installed', function () {
uiautomator2.shouldInstallServerPackages([
Expand All @@ -168,7 +168,7 @@ describe('UiAutomator2', function () {
'installState': adb.APP_INSTALL_STATE.NOT_INSTALLED,
...serverTestApk
}
]).should.eql(true);
]).should.be.true;
});
});

Expand Down

0 comments on commit 8339010

Please sign in to comment.