Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit b1e8fd8

Browse files
test: updated font size
1 parent f417288 commit b1e8fd8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/utils/render.utils.spec.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ describe('test text svg manipulation', () => {
2121
expect(result).not.toBe(undefined);
2222
expect(result?.content.querySelectorAll('deckgo-drr').length).toEqual(2);
2323
expect(result?.content.outerHTML).toEqual(
24-
`<aside><deckgo-drr text="true" slot=""><section style="white-space: pre; font-family: Montserrat; font-weight: bold; font-size: 4.066666666666666em; letter-spacing: 0px; color: rgb(21, 77, 84);">Presentation title</section></deckgo-drr><deckgo-drr text="true" slot=""><section style="white-space: pre; font-family: Raleway; font-weight: 600; font-size: 1.6em; letter-spacing: 0px; color: rgb(32, 35, 35);">Your Name, Your Title</section></deckgo-drr></aside>`
24+
`<aside><deckgo-drr text="true" slot=""><section style="white-space: pre; font-family: Montserrat; font-weight: bold; font-size: 2.7111111111111112em; letter-spacing: 0px; color: rgb(21, 77, 84);">Presentation title</section></deckgo-drr><deckgo-drr text="true" slot=""><section style="white-space: pre; font-family: Raleway; font-weight: 600; font-size: 1.0666666666666667em; letter-spacing: 0px; color: rgb(32, 35, 35);">Your Name, Your Title</section></deckgo-drr></aside>`
2525
);
2626
});
2727
});
@@ -40,11 +40,11 @@ describe('test text svg manipulation', () => {
4040
expect(result).not.toBe(undefined);
4141
expect(result?.content.querySelectorAll('deckgo-drr').length).toEqual(6);
4242
expect(result?.content.outerHTML)
43-
.toEqual(`<aside><deckgo-drr text="true" slot=""><section style="white-space: pre; font-family: Montserrat; font-weight: bold; font-size: 2.4em; letter-spacing: 0px; color: rgb(21, 77, 84);">About this talk</section></deckgo-drr><deckgo-drr text="true" slot=""><section style="white-space: pre; font-family: Raleway; font-weight: 500; font-size: 1.6em; letter-spacing: 0px; color: rgb(32, 35, 35);">1. First point
44-
</section></deckgo-drr><deckgo-drr text="true" slot=""><section style="white-space: pre; font-family: Raleway; font-weight: 500; font-size: 1.6em; letter-spacing: 0px; color: rgb(32, 35, 35);">2. Second point
45-
</section></deckgo-drr><deckgo-drr text="true" slot=""><section style="white-space: pre; font-family: Raleway; font-weight: 500; font-size: 1.6em; letter-spacing: 0px; color: rgb(32, 35, 35);">3. Third point
46-
</section></deckgo-drr><deckgo-drr text="true" slot=""><section style="white-space: pre; font-family: Raleway; font-weight: 500; font-size: 1.6em; letter-spacing: 0px; color: rgb(32, 35, 35);">4. Fourth point
47-
</section></deckgo-drr><deckgo-drr text="true" slot=""><section style="white-space: pre; font-family: Raleway; font-weight: 500; font-size: 1.6em; letter-spacing: 0px; color: rgb(32, 35, 35);">5. Fifth point</section></deckgo-drr></aside>`);
43+
.toEqual(`<aside><deckgo-drr text="true" slot=""><section style="white-space: pre; font-family: Montserrat; font-weight: bold; font-size: 1.6em; letter-spacing: 0px; color: rgb(21, 77, 84);">About this talk</section></deckgo-drr><deckgo-drr text="true" slot=""><section style="white-space: pre; font-family: Raleway; font-weight: 500; font-size: 1.0666666666666667em; letter-spacing: 0px; color: rgb(32, 35, 35);">1. First point
44+
</section></deckgo-drr><deckgo-drr text="true" slot=""><section style="white-space: pre; font-family: Raleway; font-weight: 500; font-size: 1.0666666666666667em; letter-spacing: 0px; color: rgb(32, 35, 35);">2. Second point
45+
</section></deckgo-drr><deckgo-drr text="true" slot=""><section style="white-space: pre; font-family: Raleway; font-weight: 500; font-size: 1.0666666666666667em; letter-spacing: 0px; color: rgb(32, 35, 35);">3. Third point
46+
</section></deckgo-drr><deckgo-drr text="true" slot=""><section style="white-space: pre; font-family: Raleway; font-weight: 500; font-size: 1.0666666666666667em; letter-spacing: 0px; color: rgb(32, 35, 35);">4. Fourth point
47+
</section></deckgo-drr><deckgo-drr text="true" slot=""><section style="white-space: pre; font-family: Raleway; font-weight: 500; font-size: 1.0666666666666667em; letter-spacing: 0px; color: rgb(32, 35, 35);">5. Fifth point</section></deckgo-drr></aside>`);
4848
});
4949
});
5050
});

0 commit comments

Comments
 (0)