mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix fontFamily state updating (#1679)
This commit is contained in:
parent
44a88d2d58
commit
0db7ac78c4
4 changed files with 78 additions and 1 deletions
|
@ -840,4 +840,11 @@ describe("regression tests", () => {
|
|||
mouse.doubleClick();
|
||||
expect(getSelectedElements().length).toBe(1);
|
||||
});
|
||||
|
||||
it("updates fontSize & fontFamily appState", () => {
|
||||
clickTool("text");
|
||||
expect(h.state.currentItemFontFamily).toEqual(1); // Virgil
|
||||
fireEvent.click(screen.getByText(/code/i));
|
||||
expect(h.state.currentItemFontFamily).toEqual(3); // Cascadia
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue