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

[unit-tests-only] Implemented todo unit tests for route helper #5795

Merged
merged 1 commit into from
Nov 11, 2021

Conversation

kiranparajuli589
Copy link
Contributor

Description

  • implemented todo unit tests for route helper

Related Issue

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

@kiranparajuli589 kiranparajuli589 force-pushed the implement-test-todo-route-helper branch from b83b89d to d9863d0 Compare September 15, 2021 11:40
@sonarcloud
Copy link

sonarcloud bot commented Sep 15, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

Copy link
Contributor

@dpakach dpakach left a comment

Choose a reason for hiding this comment

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

lgtm 👍🏼

@kiranparajuli589 kiranparajuli589 force-pushed the implement-test-todo-route-helper branch from d9863d0 to f990d9d Compare November 8, 2021 10:15
@sonarcloud
Copy link

sonarcloud bot commented Nov 8, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

Copy link
Contributor

@pascalwengerter pascalwengerter left a comment

Choose a reason for hiding this comment

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

LGTM 🤖 thanks for taking care & sorry the review took so long!

it.todo('should return "false" if given route meta auth is "true"')
it.todo('should return "true" if given route meta auth is "false"')
it('should return "false" if given route has no meta information', () => {
expect(isPublicPage({ name: 'files-public-list' })).toBe(false)
Copy link
Contributor

Choose a reason for hiding this comment

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

files-public-list returns false when checked if it is a public page? 🤔 we need to check our code, it's not the test that is falsy I think

@pascalwengerter pascalwengerter merged commit 6714071 into master Nov 11, 2021
@delete-merged-branch delete-merged-branch bot deleted the implement-test-todo-route-helper branch November 11, 2021 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants