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(pdf-service): styling fixes after move to pdfkit #1530

Merged
merged 8 commits into from
Dec 9, 2024
Merged

Conversation

rbrtrfl
Copy link
Contributor

@rbrtrfl rbrtrfl commented Dec 6, 2024

@rbrtrfl rbrtrfl added the RAST label Dec 6, 2024
Copy link
Contributor

@Spencer6497 Spencer6497 left a comment

Choose a reason for hiding this comment

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

LGTM! Minor comment for clarification but otherwise great :)

Comment on lines +34 to 36
expect.any(Number),
expect.any(Number),
expect.any(Object),
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm a bit confused on what this code is actually asserting? Why do we need these here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The pdfs for abgabeArt ausdrucken and online are not the same. They have slightly different content. The test is asserting that some of the relevant content is actually fed into the methods composing the pdf. The two lines you've highlighted are arguments of the list method (x and y position). But only the first argument is relevant, hence the arbitrary expect.any(Number).

@rbrtrfl rbrtrfl merged commit 3bd06cf into main Dec 9, 2024
21 checks passed
@rbrtrfl rbrtrfl deleted the pdfkit-styling branch December 9, 2024 09:55
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.

2 participants