Skip to content

Add unit tests

48a27d0
Select commit
Loading
Failed to load commit list.
Merged

[OSDEV-2375] Reorder and restyle heading elements #901

Add unit tests
48a27d0
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Mar 5, 2026 in 54s

Annotations

Check warning on line 18 in src/react/src/__tests__/components/OsIdBadge.test.jsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'childComponent' is missing in props validation

See more on https://sonarcloud.io/project/issues?id=opensupplyhub_open-supply-hub&issues=AZy83Sa9TzgRrYV1OvD-&open=AZy83Sa9TzgRrYV1OvD-&pullRequest=901

Check warning on line 4 in src/react/src/components/ProductionLocation/Heading/osIdBadge/styles.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

The arrow function should be named.

See more on https://sonarcloud.io/project/issues?id=opensupplyhub_open-supply-hub&issues=AZy83SVuTzgRrYV1OvD6&open=AZy83SVuTzgRrYV1OvD6&pullRequest=901

Check warning on line 11 in src/react/src/__tests__/components/OsIdBadge.test.jsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'children' is missing in props validation

See more on https://sonarcloud.io/project/issues?id=opensupplyhub_open-supply-hub&issues=AZy83Sa9TzgRrYV1OvD8&open=AZy83Sa9TzgRrYV1OvD8&pullRequest=901

Check warning on line 18 in src/react/src/__tests__/components/OsIdBadge.test.jsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Move function 'MockDialogTooltip' to the outer scope.

See more on https://sonarcloud.io/project/issues?id=opensupplyhub_open-supply-hub&issues=AZy83Sa9TzgRrYV1OvD9&open=AZy83Sa9TzgRrYV1OvD9&pullRequest=901

Check warning on line 11 in src/react/src/__tests__/components/OsIdBadge.test.jsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Move function 'MockCopySearch' to the outer scope.

See more on https://sonarcloud.io/project/issues?id=opensupplyhub_open-supply-hub&issues=AZy83Sa9TzgRrYV1OvD7&open=AZy83Sa9TzgRrYV1OvD7&pullRequest=901