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

Tests cleanup #6

Merged
merged 5 commits into from Dec 18, 2018
Merged

Tests cleanup #6

merged 5 commits into from Dec 18, 2018

Conversation

malaskowski
Copy link
Member

Description

Tests cleanup done together with Knot.x integration tests cleanup.

Motivation and Context

Moved some tests that are internal for this module from knotx-stack. Added missing unit test.

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 not work as expected)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

I hereby agree to the terms of the Knot.x Contributor License Agreement.

import org.junit.jupiter.api.Test;
import org.mockito.Mockito;

class HandlebarsTemplateEngineTest {
Copy link
Member

Choose a reason for hiding this comment

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

Please add the scenarios:

  • incorrect syntax,
  • empty fragment

Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure what you mean by incorrect syntax.
There is already test for spotting delimiters that are not HBS ones (in process_whenCustomDelimiter_expectMarkup).
I've added one more test process_whenUndefinedHbsHelperSpotted_expectMarkup where unknown hbs helper is used.

Copy link
Member

Choose a reason for hiding this comment

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

ok

import org.junit.jupiter.api.Test;
import org.mockito.Mockito;

class HandlebarsTemplateEngineTest {
Copy link
Member

Choose a reason for hiding this comment

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

ok

@tomaszmichalak tomaszmichalak merged commit 69ade2e into master Dec 18, 2018
@tomaszmichalak tomaszmichalak deleted the tests-cleanup branch December 18, 2018 20:11
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.

None yet

2 participants