File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
apps/sq-server/src/main/js/apps/settings/components/sca/__tests__ Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import { waitFor } from '@testing-library/react';
2222import userEvent from '@testing-library/user-event' ;
2323import { registerServiceMocks } from '~shared/api/mocks/server' ;
2424import { byLabelText , byRole , byText } from '~shared/helpers/testSelector' ;
25+ import { isDefined } from '~shared/helpers/types' ;
2526import { ExtendedSettingDefinition } from '~shared/types/settings' ;
2627import { EntitlementsServiceMock } from '~sq-server-commons/api/mocks/EntitlementsServiceMock' ;
2728import ScaServiceSettingsMock from '~sq-server-commons/api/mocks/ScaServiceSettingsMock' ;
@@ -111,6 +112,11 @@ const ui = {
111112 dismissModal : byRole ( 'button' , { name : 'property.sca.cancel.modal.continue_editing' } ) ,
112113} ;
113114
115+ it ( 'test should always pass' , ( ) => {
116+ /** This test is here so that CI for community build passes when the rest of the file is removed. */
117+ expect ( isDefined ( 1 ) ) . toBe ( true ) ;
118+ } ) ;
119+
114120
115121function renderScaAdmin ( ) {
116122 return renderComponent ( < Sca definitions = { SETTINGS_DEFINITIONS } /> ) ;
Original file line number Diff line number Diff line change 2121import { waitFor } from '@testing-library/react' ;
2222import userEvent from '@testing-library/user-event' ;
2323import { byRole , byText } from '~shared/helpers/testSelector' ;
24+ import { isDefined } from '~shared/helpers/types' ;
2425import ScaServiceSettingsMock from '~sq-server-commons/api/mocks/ScaServiceSettingsMock' ;
2526import { renderComponent } from '~sq-server-commons/helpers/testReactTestingUtils' ;
2627import ScaConnectivityTest from '../ScaConnectivityTest' ;
@@ -44,6 +45,11 @@ const ui = {
4445 closeModal : byRole ( 'button' , { name : 'close' } ) ,
4546} ;
4647
48+ it ( 'test should always pass' , ( ) => {
49+ /** This test is here so that CI for community build passes when the rest of the file is removed. */
50+ expect ( isDefined ( 1 ) ) . toBe ( true ) ;
51+ } ) ;
52+
4753
4854function renderScaConnectivityTest ( ) {
4955 return renderComponent ( < ScaConnectivityTest /> ) ;
You can’t perform that action at this time.
0 commit comments