fix: missing act() in flowchart tests (#8354)
This commit is contained in:
@@ -36,7 +36,7 @@ describe("flow chart creation", () => {
|
||||
height: 100,
|
||||
});
|
||||
|
||||
h.elements = [rectangle];
|
||||
API.setElements([rectangle]);
|
||||
API.setSelectedElements([rectangle]);
|
||||
});
|
||||
|
||||
@@ -166,7 +166,7 @@ describe("flow chart navigation", () => {
|
||||
height: 100,
|
||||
});
|
||||
|
||||
h.elements = [rectangle];
|
||||
API.setElements([rectangle]);
|
||||
API.setSelectedElements([rectangle]);
|
||||
|
||||
Keyboard.withModifierKeys({ ctrl: true }, () => {
|
||||
@@ -234,7 +234,7 @@ describe("flow chart navigation", () => {
|
||||
height: 100,
|
||||
});
|
||||
|
||||
h.elements = [rectangle];
|
||||
API.setElements([rectangle]);
|
||||
API.setSelectedElements([rectangle]);
|
||||
|
||||
Keyboard.withModifierKeys({ ctrl: true }, () => {
|
||||
@@ -325,7 +325,7 @@ describe("flow chart navigation", () => {
|
||||
height: 100,
|
||||
});
|
||||
|
||||
h.elements = [rectangle];
|
||||
API.setElements([rectangle]);
|
||||
API.setSelectedElements([rectangle]);
|
||||
|
||||
Keyboard.withModifierKeys({ ctrl: true }, () => {
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
export const yellow = (str: string) => `\u001b[33m${str}\u001b[0m`;
|
||||
export const red = (str: string) => `\u001b[31m${str}\u001b[0m`;
|
||||
Reference in New Issue
Block a user