Explorar o código

Merge pull request #29 from jhadvig/OCPBUGS-11042

OCPBUGS-11042: Remove explicit any type
Jakub Hadvig %!s(int64=3) %!d(string=hai) anos
pai
achega
6754bbed48

+ 1 - 1
integration-tests/support/index.ts

@@ -2,6 +2,6 @@
 import './login';
 
 export const checkErrors = () =>
-  cy.window().then((win: any) => {
+  cy.window().then((win) => {
     assert.isTrue(!win.windowError, win.windowError);
   });

+ 2 - 2
integration-tests/support/login.ts

@@ -17,7 +17,7 @@ const loginUsername = Cypress.env('BRIDGE_KUBEADMIN_PASSWORD')
 Cypress.Commands.add('login', (username: string, password: string) => {
   // Check if auth is disabled (for a local development environment).
   cy.visit('/'); // visits baseUrl which is set in plugins/index.js
-  cy.window().then((win: any) => {
+  cy.window().then((win) => {
     if (win.SERVER_FLAGS?.authDisabled) {
       return;
     }
@@ -37,7 +37,7 @@ Cypress.Commands.add('login', (username: string, password: string) => {
 
 Cypress.Commands.add('logout', () => {
   // Check if auth is disabled (for a local development environment).
-  cy.window().then((win: any) => {
+  cy.window().then((win) => {
     if (win.SERVER_FLAGS?.authDisabled) {
       return;
     }

+ 2 - 2
integration-tests/tests/example-page.cy.ts

@@ -11,7 +11,7 @@ const installHelmChart = (path: string) => {
     {
       failOnNonZeroExit: false,
     },
-  ).then((result: any) => {
+  ).then((result) => {
     cy.visit(`/example`);
     cy.log('Error installing helm chart: ', result.stderr);
     cy.log('Successfully installed helm chart: ', result.stdout);
@@ -24,7 +24,7 @@ const deleteHelmChart = (path: string) => {
     {
       failOnNonZeroExit: false,
     },
-  ).then((result: any) => {
+  ).then((result) => {
     cy.log('Error uninstalling helm chart: ', result.stderr);
     cy.log('Successfully uninstalled helm chart: ', result.stdout);
   });