-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: Add unit tests for SqCollapseComponent #75
base: master
Are you sure you want to change the base?
Conversation
WalkthroughWalkthroughThe recent changes introduce a robust test suite for the Changes
Poem
TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- src/components/sq-accordion/sq-collapse/sq-collapse.component.spec.ts (1 hunks)
Additional context used
Biome
src/components/sq-accordion/sq-collapse/sq-collapse.component.spec.ts
[error] 17-21: Disallow duplicate setup and teardown hooks.
Disallow beforeEach duplicacy inside the describe function.
(lint/suspicious/noDuplicateTestHooks)
Additional comments not posted (9)
src/components/sq-accordion/sq-collapse/sq-collapse.component.spec.ts (9)
23-25
: LGTM!The test case correctly verifies the creation of the component.
27-42
: LGTM!The test case comprehensively verifies the initial values of the component's properties.
44-49
: LGTM!The test case correctly verifies the class application based on the input.
51-66
: LGTM!The test case correctly verifies the background color change on hover.
68-76
: LGTM!The test case correctly verifies the event emission with the correct parameters.
78-92
: LGTM!The test case correctly verifies that the collapse is not toggled when the component is disabled, loading, or opening.
94-114
: LGTM!The test case correctly verifies the collapse toggling when all conditions are met.
116-121
: LGTM!The test case correctly verifies the loader display when loading is true.
123-135
: LGTM!The test case correctly verifies the class application based on the inputs.
src/components/sq-accordion/sq-collapse/sq-collapse.component.spec.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- src/components/sq-accordion/sq-collapse/sq-collapse.component.spec.ts (1 hunks)
Files skipped from review as they are similar to previous changes (1)
- src/components/sq-accordion/sq-collapse/sq-collapse.component.spec.ts
@vinimarcili code review |
@JonasPeres code review |
Summary by CodeRabbit