Skip to content

Commit e053fa3

Browse files
committed
fix problems detected by eslint
Signed-off-by: Oleg S <[email protected]>
1 parent 3c6bd78 commit e053fa3

File tree

5 files changed

+10
-14
lines changed

5 files changed

+10
-14
lines changed

fec.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = {
99
* If the dash character is present, you will have add a camelCase version of it to the sassPrefix.
1010
* If it does not contain the dash character, remove this configuration.
1111
*/
12-
sassPrefix: '.frontend-starter-app, .frontendStarterApp',
12+
sassPrefix: '.secure-sign-hcc-app, .secureSignHccApp',
1313
/**
1414
* Change to false after your app is registered in configuration files
1515
*/

jest.config.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@ module.exports = {
66
'\\.(css|scss)$': 'identity-obj-proxy',
77
},
88
roots: ['<rootDir>/src/'],
9-
transformIgnorePatterns: [
10-
'/node_modules/(?!@redhat-cloud-services)',
11-
'/node_modules/(?!@patternfly)',
12-
],
9+
transformIgnorePatterns: ['/node_modules/(?!@redhat-cloud-services)', '/node_modules/(?!@patternfly)'],
1310
testEnvironment: 'jest-environment-jsdom',
1411
moduleDirectories: [
1512
'node_modules',

src/App.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ import { notificationsReducer } from '@redhat-cloud-services/frontend-components
1010
import { useChrome } from '@redhat-cloud-services/frontend-components/useChrome';
1111

1212
const App = () => {
13-
const { updateDocumentTitle } = useChrome();
13+
const { updateDocumentTitle, init } = useChrome();
1414

1515
useEffect(() => {
1616
const registry = getRegistry();
1717
registry.register({ notifications: notificationsReducer as Reducer });
18+
init();
1819
// You can use directly the name of your app
19-
updateDocumentTitle('Starter app');
20-
console.log('app has mounted', []);
20+
updateDocumentTitle('SecureSign');
2121
}, []);
2222

2323
return (

src/Components/SecureSign/secure-sign.test.tsx

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
import React from 'react';
2-
import { render } from '@testing-library/react';
3-
import SampleComponent from './secure-sign';
1+
// import React from 'react';
2+
// import { render } from '@testing-library/react';
3+
// import SampleComponent from './secure-sign';
44

55
test('expect sample-component to render children', () => {
6-
const children = <h1>Hello</h1>;
7-
6+
// const children = <h1>Hello</h1>;
87
// render(
98
// <SampleComponent
109
// currentStep={0}

src/Components/SecureSign/secure-sign.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import './secure-sign.scss';
22
import { Button, ProgressStep, ProgressStepper, Text, TextContent, TextVariants } from '@patternfly/react-core';
3-
import { ArrowLeftIcon, ArrowRightIcon, CheckIcon, ExternalLinkSquareAltIcon } from '@patternfly/react-icons';
3+
import { ArrowLeftIcon, ExternalLinkSquareAltIcon } from '@patternfly/react-icons';
44
import React from 'react';
55

66
type GettingStartedProps = {

0 commit comments

Comments
 (0)