import { translate } from 'sonar-ui-common/helpers/l10n';
import InstanceMessage from '../../../components/common/InstanceMessage';
import { isVSTS } from '../../../helpers/almIntegrations';
-import { isSonarCloud } from '../../../helpers/system';
import ProjectAnalysisStep from '../components/ProjectAnalysisStep';
import TokenStep from '../components/TokenStep';
import '../styles.css';
-import AnalyzeTutorialSuggestion from './AnalyzeTutorialSuggestion';
export enum Steps {
ANALYSIS,
</p>
</div>
- {isSonarCloud() && <AnalyzeTutorialSuggestion almKey={almKey} />}
-
{!isVSTS(almKey) && (
<>
<TokenStep
component={component}
displayRowLayout={true}
open={step === Steps.ANALYSIS}
- organization={isSonarCloud() ? component.organization : undefined}
stepNumber={2}
token={token}
/>
import * as React from 'react';
import AnalyzeTutorial from '../AnalyzeTutorial';
-jest.mock('../../../../helpers/system', () => ({
- isSonarCloud: jest.fn().mockReturnValue(true)
-}));
-
Date.now = jest.fn().mockReturnValue(1540457859031);
const component = {