Skip to content

Commit

Permalink
test: perform manual tests for PDF Link and Table of Contents
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbert authored and Yolijn committed Oct 12, 2024
1 parent 28c75d4 commit c705163
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/component-library-pdf/src/Link.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ describe('Link', () => {
),
});

expect(sha256).toBe('cfb53b1c5cdc2d5efc4b2cc2c933bfb8ef8d9fee0ec9ce7c2897f080189c9369');
expect(sha256).toBe('b85b61434a0bfd56330b142943e7d655d557d39f05136310ae301536971a17bf');
});
});
12 changes: 6 additions & 6 deletions packages/component-library-pdf/src/TableOfContents.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,28 +38,28 @@ describe('Table of Contents', () => {
});

it('renders a <TOC> tag', async () => {
expect(sha256).toBe('bd73ea7ffb47470d26b64dae2336118acc8b7448190b63c399de448bb09a14c2');
expect(sha256).toBe('720c5d0d1c951dcbb5b981f51dbed88f00bf0b5bc8565e95965ad8e8e382769f');
});

describe('list item', () => {
it('renders a <TOCI> tag', async () => {
expect(sha256).toBe('bd73ea7ffb47470d26b64dae2336118acc8b7448190b63c399de448bb09a14c2');
expect(sha256).toBe('720c5d0d1c951dcbb5b981f51dbed88f00bf0b5bc8565e95965ad8e8e382769f');
});

it('renders a <Reference> tag', async () => {
expect(sha256).toBe('bd73ea7ffb47470d26b64dae2336118acc8b7448190b63c399de448bb09a14c2');
expect(sha256).toBe('720c5d0d1c951dcbb5b981f51dbed88f00bf0b5bc8565e95965ad8e8e382769f');
});

it('renders a <Link> tag', async () => {
expect(sha256).toBe('bd73ea7ffb47470d26b64dae2336118acc8b7448190b63c399de448bb09a14c2');
expect(sha256).toBe('720c5d0d1c951dcbb5b981f51dbed88f00bf0b5bc8565e95965ad8e8e382769f');
});

it('renders a <Lbl> tag with chapter number', async () => {
expect(sha256).toBe('bd73ea7ffb47470d26b64dae2336118acc8b7448190b63c399de448bb09a14c2');
expect(sha256).toBe('720c5d0d1c951dcbb5b981f51dbed88f00bf0b5bc8565e95965ad8e8e382769f');
});

it('renders a <Span> tag with the text content', async () => {
expect(sha256).toBe('bd73ea7ffb47470d26b64dae2336118acc8b7448190b63c399de448bb09a14c2');
expect(sha256).toBe('720c5d0d1c951dcbb5b981f51dbed88f00bf0b5bc8565e95965ad8e8e382769f');
});
});
});

0 comments on commit c705163

Please sign in to comment.