|
@@ -128,7 +128,7 @@ describe("binding with linear elements", () => {
|
|
|
restoreOriginalGetBoundingClientRect();
|
|
|
});
|
|
|
|
|
|
- it("should remain bound to linear element even on small position change", async () => {
|
|
|
+ it("should not remain bound to linear element even on small position change", async () => {
|
|
|
const linear = h.elements[1] as ExcalidrawLinearElement;
|
|
|
const inputX = UI.queryStatsProperty("X")?.querySelector(
|
|
|
".drag-input",
|
|
@@ -137,10 +137,10 @@ describe("binding with linear elements", () => {
|
|
|
expect(linear.startBinding).not.toBe(null);
|
|
|
expect(inputX).not.toBeNull();
|
|
|
UI.updateInput(inputX, String("204"));
|
|
|
- expect(linear.startBinding).not.toBe(null);
|
|
|
+ expect(linear.startBinding).toBe(null);
|
|
|
});
|
|
|
|
|
|
- it("should remain bound to linear element on any angle change", async () => {
|
|
|
+ it("should not remain bound to linear element on any angle change", async () => {
|
|
|
const linear = h.elements[1] as ExcalidrawLinearElement;
|
|
|
const inputAngle = UI.queryStatsProperty("A")?.querySelector(
|
|
|
".drag-input",
|
|
@@ -148,7 +148,7 @@ describe("binding with linear elements", () => {
|
|
|
|
|
|
expect(linear.startBinding).not.toBe(null);
|
|
|
UI.updateInput(inputAngle, String("1"));
|
|
|
- expect(linear.startBinding).not.toBe(null);
|
|
|
+ expect(linear.startBinding).toBe(null);
|
|
|
});
|
|
|
|
|
|
it("should unbind linear element on large position change", async () => {
|