Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(description): do not crash on description open #533

Merged
merged 1 commit into from
Feb 27, 2024

Conversation

sipayRT
Copy link
Member

@sipayRT sipayRT commented Feb 27, 2024

No description provided.

@miripiruni
Copy link
Member

LGTM

Comment on lines +28 to +34
const detailsContent = component.find('.details__content');

assert.isTrue(detailsContent.contains(<h3>simple text</h3>));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Почему в трех тестах выше component.find прямо внутри ассерта, а тут - нет?

@@ -0,0 +1,32 @@
import React from 'react';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Странно, что на него тестов не было

@@ -0,0 +1,32 @@
import React from 'react';
import {mkConnectedComponent} from '../../utils';
import Description from 'lib/static/components/section/body/description';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Я бы сначала импортил внешние зависимости, затем внутренние по полному пути, а в конце хелперы для тестов по относительному.

@sipayRT sipayRT force-pushed the sp.INFRADUTY-26511.description branch from 70d6e99 to 9b0bb06 Compare February 27, 2024 12:29
@sipayRT sipayRT merged commit 2c7a867 into master Feb 27, 2024
5 checks passed
@sipayRT sipayRT deleted the sp.INFRADUTY-26511.description branch February 27, 2024 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants