refactor: replace .indexOf() with .includes() (#39195)
This commit is contained in:
parent
9cd5de7588
commit
2c52eb7e1c
5 changed files with 5 additions and 5 deletions
|
@ -948,7 +948,7 @@ describe('Menu module', function () {
|
|||
await new Promise<void>((resolve) => {
|
||||
appProcess.stdout.on('data', data => {
|
||||
output += data;
|
||||
if (data.indexOf('Window has') > -1) {
|
||||
if (data.includes('Window has')) {
|
||||
resolve();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue