Skip to content

Commit 138535a

Browse files
committed
removing performance.now
1 parent 30e1510 commit 138535a

3 files changed

Lines changed: 0 additions & 9 deletions

File tree

src/visualBuilder/__test__/hover/fields/all-hover.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,6 @@ describe("When an element is hovered in visual builder mode", () => {
286286
});
287287

288288
test("should have outline and custom cursor on individual instances", async () => {
289-
const testStartTime = performance.now();
290-
const dispatchStartTime = performance.now();
291289
firstField.dispatchEvent(mousemoveEvent);
292290
await waitForHoverOutline();
293291

src/visualBuilder/__test__/hover/fields/file.test.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,6 @@ describe("When an element is hovered in visual builder mode", () => {
162162
});
163163

164164
test("should have a outline and custom cursor on the url as well", async () => {
165-
const testStartTime = performance.now();
166-
const dispatchStartTime = performance.now();
167165
imageField.dispatchEvent(mousemoveEvent);
168166
await waitForHoverOutline();
169167

@@ -280,8 +278,6 @@ describe("When an element is hovered in visual builder mode", () => {
280278
});
281279

282280
test("should have outline and custom cursor on individual instances", async () => {
283-
const testStartTime = performance.now();
284-
const dispatchStartTime = performance.now();
285281
firstFileField.dispatchEvent(mousemoveEvent);
286282
await waitForHoverOutline();
287283
const hoverOutline = document.querySelector(

src/visualBuilder/__test__/hover/fields/group.test.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ describe("When an element is hovered in visual builder mode", () => {
148148
});
149149

150150
test("should have a outline and custom cursor on the nested single line", async () => {
151-
const testStartTime = performance.now();
152151
const singleLine = document.createElement("p");
153152
singleLine.setAttribute(
154153
"data-cslp",
@@ -260,8 +259,6 @@ describe("When an element is hovered in visual builder mode", () => {
260259
});
261260

262261
test("should have outline and custom cursor on nested multi line", async () => {
263-
const testStartTime = performance.now();
264-
const dispatchStartTime = performance.now();
265262
firstNestedMultiLine.dispatchEvent(mousemoveEvent);
266263
await waitForHoverOutline();
267264

0 commit comments

Comments
 (0)