MM-61893 Replace usage of hasOwnProperty with Object.hasOwn (#29428)
* MM-61893 Replace usage of hasOwnProperty with Object.hasOwn * Update type guard in messageToElement * Replace a couple more hasOwnProperty calls
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
3ed209a34d
Коммит
8533350a91
@@ -152,11 +152,11 @@ function waitForServerStatus(pluginId, version, state = {}) {
|
||||
const checkFn = () => {
|
||||
cy.log(`Waiting for ${pluginId}`);
|
||||
return cy.apiGetPluginStatus(pluginId, version).then((status) => {
|
||||
if (state.hasOwnProperty('isActive')) {
|
||||
if (Object.hasOwn(state, 'isActive')) {
|
||||
return state.isActive === status.isActive;
|
||||
}
|
||||
|
||||
if (state.hasOwnProperty('isInstalled')) {
|
||||
if (Object.hasOwn(state, 'isInstalled')) {
|
||||
return state.isInstalled === status.isInstalled;
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user